fixes #586 session_start() error with PHP 7.1 Windows/IIS10

This commit is contained in:
modus75 2016-12-26 17:23:01 +01:00
parent 3a8b26726f
commit af3472324b

View file

@ -145,15 +145,11 @@ SELECT data
WHERE id = \''.get_remote_addr_session_hash().$session_id.'\'
;';
$result = pwg_query($query);
if ($result)
if ( ($row = pwg_db_fetch_assoc($result)) )
{
$row = pwg_db_fetch_assoc($result);
return $row['data'];
}
else
{
return '';
}
return '';
}
/**