[BUGFIX] Check for null in debug_check_recordset 01/49801/2
authorTomita Militaru <militarutomita@gmail.com>
Fri, 2 Sep 2016 16:46:48 +0000 (18:46 +0200)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 2 Sep 2016 21:24:29 +0000 (23:24 +0200)
Check for null in function debug_check_record set
and return false if value is null.

Resolves: #77755
Releases: master,7.6,6.2
Change-Id: I757d3ee3c4db9d52f1c4f7a4f07262fe187b2496
Reviewed-on: https://review.typo3.org/49801
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/core/Classes/Database/DatabaseConnection.php

index 49f6c16..5a569ea 100644 (file)
@@ -1856,7 +1856,7 @@ class DatabaseConnection
      */
     public function debug_check_recordset($res)
     {
-        if ($res !== false) {
+        if ($res !== false && $res !== null) {
             return true;
         }
         $trace = debug_backtrace(0);