[BUGFIX] mysqli_stmt::reset may throw a PHP warning 58/34358/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:19:56 +0000 (18:19 +0100)
Releases: master, 6.2
Resolves: #63080
Change-Id: Ib8e8720855b28c4d3782cec68c65da99cfe973af
Reviewed-on: http://review.typo3.org/34358
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers <xavier@typo3.org>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Classes/Database/PreparedStatement.php

index da6a9f7..e91b762 100644 (file)
@@ -302,7 +302,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;
                        }
                }