band aided some bug
This commit is contained in:
parent
92a5bf51a6
commit
fef949f6ea
|
@ -1100,7 +1100,17 @@ class Application_Model_Preference
|
|||
return function ($x) { return $x; };
|
||||
} else {
|
||||
$ds = unserialize($v);
|
||||
return function ($x) use ($ds) { return $ds['ColReorder'][$x]; } ;
|
||||
return function ($x) use ($ds) {
|
||||
if ( in_array($ds['ColReorder'], $x) ) {
|
||||
return $ds['ColReorder'][$x];
|
||||
} else {
|
||||
Logging::warn("Index $x does not exist preferences");
|
||||
Logging::warn("Defaulting to identity and printing
|
||||
preferences");
|
||||
Logging::warn($ds);
|
||||
return $x;
|
||||
}
|
||||
} ;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue