From: Janusz Dobrowolski Date: Wed, 24 Mar 2010 08:28:42 +0000 (+0000) Subject: Same for array_selector. X-Git-Tag: v2.4.2~19^2~929 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=09ef176a409254bb05c0ad5bfd0d673dda2c1ad6;p=fa-stable.git Same for array_selector. --- diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index bd1a4466..ab9a9659 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -182,7 +182,7 @@ $opts = array( // default options $selected_id[] = $value; } - if (in_array((string)$value, $selected_id, TRUE)) { + if (in_array((string)$value, $selected_id, true)) { $sel = 'selected'; $found = $value; $edit = $opts['editable'] && $contact_row['editable'] @@ -344,7 +344,7 @@ $opts = array( // default options //if($name=='SelectStockFromList') display_error($sql); foreach($items as $value=>$descr) { $sel = ''; - if (in_array((string)$value, $selected_id)) { + if (in_array((string)$value, $selected_id), true) { $sel = "selected='selected'"; $found = $value; }