mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 12:19:57 +03:00
fixes #586 session_start() error with PHP 7.1 Windows/IIS10
This commit is contained in:
parent
3a8b26726f
commit
af3472324b
1 changed files with 2 additions and 6 deletions
|
@ -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 '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue