[BUGFIX] Check for null in debug_check_recordset 84/49784/6
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:23:58 +0000 (23:23 +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/49784
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
typo3/sysext/core/Classes/Database/DatabaseConnection.php

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