in_array -> array_key_exists

This commit is contained in:
Rudi Grinberg 2012-09-17 16:40:22 -04:00
parent c2b2ea1d16
commit ae1ae80d36
1 changed files with 1 additions and 1 deletions

View File

@ -1101,7 +1101,7 @@ class Application_Model_Preference
} else {
$ds = unserialize($v);
return function ($x) use ($ds) {
if ( in_array($x, $ds['ColReorder'] ) ) {
if ( array_key_exists($x, $ds['ColReorder'] ) ) {
return $ds['ColReorder'][$x];
} else {
Logging::warn("Index $x does not exist preferences");