From d2d2c5f3b42b0312a7f98b7470eae191aedfc678 Mon Sep 17 00:00:00 2001 From: "stefan.r" Date: Wed, 6 Jul 2016 17:25:45 +0200 Subject: [PATCH] Issue #2761285 by MegaChriz: _drupal_session_write() does not always return a boolean --- includes/session.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/session.inc b/includes/session.inc index efaf839b3cd..25aa3475e97 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -163,7 +163,7 @@ function _drupal_session_write($sid, $value) { try { if (!drupal_save_session()) { // We don't have anything to do if we are not allowed to save the session. - return; + return TRUE; } // Check whether $_SESSION has been changed in this request.