Changeset 2436
- Timestamp:
- 09/03/08 15:30:09 (3 months ago)
- Files:
-
- 1 modified
-
trunk/htdocs/system/classes/formui.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/system/classes/formui.php
r2375 r2436 220 220 $controls = array(); 221 221 foreach($source->container->controls as $name => $ctrl) { 222 if($ctrl == $source) {222 if($ctrl === $source) { 223 223 $source_name = $name; 224 224 continue; … … 229 229 230 230 // Insert the source control into the destination control's container's list of controls in the correct location 231 $target_index = array_search($target, array_values($target->container->controls) );231 $target_index = array_search($target, array_values($target->container->controls), true); 232 232 $left_slice= array_slice($target->container->controls, 0, ($target_index + $offset), true); 233 233 $right_slice= array_slice($target->container->controls, ($target_index + $offset), count($target->container->controls), true);
