mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-05-12 03:16:24 +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,16 +145,12 @@ SELECT data
|
||||||
WHERE id = \''.get_remote_addr_session_hash().$session_id.'\'
|
WHERE id = \''.get_remote_addr_session_hash().$session_id.'\'
|
||||||
;';
|
;';
|
||||||
$result = pwg_query($query);
|
$result = pwg_query($query);
|
||||||
if ($result)
|
if ( ($row = pwg_db_fetch_assoc($result)) )
|
||||||
{
|
{
|
||||||
$row = pwg_db_fetch_assoc($result);
|
|
||||||
return $row['data'];
|
return $row['data'];
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called by PHP session manager, writes data in the sessions table.
|
* Called by PHP session manager, writes data in the sessions table.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue