summaryrefslogtreecommitdiff
path: root/includes/inc_streaminfo.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/inc_streaminfo.php')
-rwxr-xr-xincludes/inc_streaminfo.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/inc_streaminfo.php b/includes/inc_streaminfo.php
index 5342573..576bd5d 100755
--- a/includes/inc_streaminfo.php
+++ b/includes/inc_streaminfo.php
@@ -28,11 +28,15 @@ function writeinfostream($type=0, $name="", $title="", $desc="", $mode="", $cate
function readinfostream()
{
+
+ if (!file_exists("ram/streaminfo"))
+ return array(0, "", "", "", "");
+
$infofile = fopen("ram/streaminfo", 'r');
if (!$infofile)
return array(0, "", "", "", "");
- while ($line = fgets($infofile, 1024))
+ while ($line = fgets($infofile, 1024))
{
if (!strncmp($line, "type=", strlen("type=")))
$type = substr($line, strlen("type="), -1);