More exception handling
This commit is contained in:
parent
b04afaec2c
commit
203378e60a
2 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue