band aided some bug

This commit is contained in:
Rudi Grinberg 2012-09-17 12:50:04 -04:00
parent 92a5bf51a6
commit fef949f6ea
1 changed files with 11 additions and 1 deletions

View File

@ -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;
}
} ;
}
}