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,6 +1095,7 @@ class Application_Model_Preference
public static function getCurrentLibraryTableSetting()
{
$v = self::getValue("library_datatable");
if ( $v === '' ) {
return function ($x) { return $x; };
} else {

View file

@ -783,7 +783,10 @@ SQL;
$media_id = $item['stream_id'];
$uri = $item['url'];
self::createStreamScheduleEvent($data, $item, $media_id, $uri);
} else {
throw new Exception("Unknown schedule type: ".print_r($item, true));
}
}
}