mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
fixes #586 session_start() error with PHP 7.1 Windows/IIS10
This commit is contained in:
@@ -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 '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user