fix remote_channel(), update php minversion requirement

This commit is contained in:
redmatrix
2016-05-29 18:38:24 -07:00
parent ac4688eac0
commit 3b2679db29
4 changed files with 6 additions and 4 deletions

View File

@@ -1803,7 +1803,7 @@ function local_user() {
function remote_channel() {
if(session_id()
&& array_key_exists('authenticated',$_SESSION) && $_SESSION['authenticated']
&& array_key_exists('visitor_id',$_SESSION) && intval($_SESSION['visitor_id']))
&& array_key_exists('visitor_id',$_SESSION) && $_SESSION['visitor_id'])
return $_SESSION['visitor_id'];
return false;