Skip to content

Commit

Permalink
Update Instances.php
Browse files Browse the repository at this point in the history
save empty niceurl null instead of empty string (unique index)
  • Loading branch information
hondilla authored Nov 4, 2024
1 parent 5b5233c commit 58c3a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Admin/Models/Instances.php
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ function insertAttributes($param_arr)
$sql_lan = "select language from omp_attributes where id=" . $atr_id;
$row_lan = parent::get_one($sql_lan);
$sql = 'update omp_niceurl
set niceurl = ""
set niceurl = null
where inst_id = '.$new_instance_id.'
and language = "'.$row_lan['language'].'";';
parent::update_one($sql);
Expand Down

0 comments on commit 58c3a56

Please sign in to comment.