Skip to content
Permalink
Browse files

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

  • Loading branch information...
modus75 committed Dec 26, 2016
1 parent 3a8b267 commit af3472324bcc91db94c69383e74fd15b170f4594
Showing with 2 additions and 6 deletions.
  1. +2 −6 include/functions_session.inc.php
@@ -145,15 +145,11 @@ function pwg_session_read($session_id)
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 '';
}
/**

1 comment on commit af34723

@flop25

This comment has been minimized.

Copy link
Member

commented on af34723 Jan 30, 2017

please could you take a look at #611 which seems related?

Please sign in to comment.
You can’t perform that action at this time.