Skip to content

Commit

Permalink
Add missing return value.
Browse files Browse the repository at this point in the history
"Session callback expects true/false return value!!".
  • Loading branch information
Nigel Jewell committed Sep 18, 2021
1 parent e020a3e commit c479391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/session.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function sess_read($id) {
function sess_write($id, $data) {
global $db;
if (empty($db))
return;
return false;
if (!empty($_SERVER['REMOTE_USER']))
$id = 'user:'.$_SERVER['REMOTE_USER'];
$db->query('REPLACE INTO mythweb_sessions (id, modified, data) VALUES (?,CURRENT_TIMESTAMP,?)',
Expand Down

0 comments on commit c479391

Please sign in to comment.