mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-05-09 09:57:56 +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.'\'
|
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 '';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue