[BUGFIX] mysqli_stmt::reset may throw a PHP warning 62/34362/2
authorXavier Perseguers <xavier@typo3.org>
Wed, 19 Nov 2014 16:27:30 +0000 (17:27 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Wed, 19 Nov 2014 17:20:20 +0000 (18:20 +0100)
Releases: master, 6.2
Resolves: #63080
Change-Id: Ib8e8720855b28c4d3782cec68c65da99cfe973af
Reviewed-on: http://review.typo3.org/34362
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Classes/Database/PreparedStatement.php

index f6c3b0a..d332e65 100644 (file)
@@ -295,7 +295,7 @@ class PreparedStatement {
                        // The statement has already been executed, we try to reset it
                        // for current run but will set it to NULL if it fails for some
                        // reason, just as if it were the first run
-                       if (!$this->statement->reset()) {
+                       if (!@$this->statement->reset()) {
                                $this->statement = NULL;
                        }
                }