More exception handling

This commit is contained in:
Martin Konecny 2012-09-13 14:56:03 -04:00
parent b04afaec2c
commit 203378e60a
2 changed files with 5 additions and 1 deletions

View file

@ -1095,7 +1095,8 @@ class Application_Model_Preference
public static function getCurrentLibraryTableSetting()
{
$v = self::getValue("library_datatable");
if( $v === '' ) {
if ( $v === '' ) {
return function ($x) { return $x; };
} else {
$ds = unserialize($v);