More exception handling
This commit is contained in:
parent
b04afaec2c
commit
203378e60a
2 changed files with 5 additions and 1 deletions
|
@ -1095,6 +1095,7 @@ class Application_Model_Preference
|
||||||
public static function getCurrentLibraryTableSetting()
|
public static function getCurrentLibraryTableSetting()
|
||||||
{
|
{
|
||||||
$v = self::getValue("library_datatable");
|
$v = self::getValue("library_datatable");
|
||||||
|
|
||||||
if ( $v === '' ) {
|
if ( $v === '' ) {
|
||||||
return function ($x) { return $x; };
|
return function ($x) { return $x; };
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -783,7 +783,10 @@ SQL;
|
||||||
$media_id = $item['stream_id'];
|
$media_id = $item['stream_id'];
|
||||||
$uri = $item['url'];
|
$uri = $item['url'];
|
||||||
self::createStreamScheduleEvent($data, $item, $media_id, $uri);
|
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