Fixed stream error

This commit is contained in:
kolaente 2017-10-04 17:26:50 +02:00
parent 3faa9d3c35
commit 2398fa28c0
1 changed files with 26 additions and 23 deletions

View File

@ -18,6 +18,8 @@ if(isset($_GET['getStream']) && is_loggedin())
$db->setCol('system_show_stream');
$db->data['user'] = $_SESSION['userid'];
$db->get();
if (isset($db->data[0]))
{
$loglevel = json_decode($db->data[0]['level']);
$streamData = [];
@ -44,6 +46,7 @@ if(isset($_GET['getStream']) && is_loggedin())
echo json_encode($streamData);
exit;
}
}
//Show Stream
printHeader('Stream');