diff options
Diffstat (limited to 'includes')
-rwxr-xr-x | includes/inc_stream.php | 2 | ||||
-rwxr-xr-x | includes/include.php | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/includes/inc_stream.php b/includes/inc_stream.php index 925fd7b..d160263 100755 --- a/includes/inc_stream.php +++ b/includes/inc_stream.php @@ -20,7 +20,7 @@ switch ($type) break; // Media case 3: - list($title, $desc) = mediagetinfostream($name, 0); + list($title, $desc) = mediagetinfostream($name); $realname = basename($name); break; default: diff --git a/includes/include.php b/includes/include.php index ae77137..177a1c0 100755 --- a/includes/include.php +++ b/includes/include.php @@ -14,6 +14,10 @@ include ('getid3/getid3.php'); function selectpage() { + // Sanity check + if (!file_exists('ram')) + die("Error: 'ram/' directory is missing, please create it!"); + $action = $_REQUEST['action']; switch ($action) |