[TASK] Clean up DatabaseConnection::fullQuoteArray
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Database / DatabaseConnection.php
index 4b799fd..f6857c3 100644 (file)
@@ -883,10 +883,11 @@ class DatabaseConnection
         } elseif (!is_array($noQuote)) {
             $noQuote = (bool)$noQuote;
         }
+        if ($noQuote === true) {
+            return $arr;
+        }
         foreach ($arr as $k => $v) {
-            if ($noQuote === true) {
-                continue;
-            } elseif ($noQuote === false || !in_array($k, $noQuote)) {
+            if ($noQuote === false || !in_array($k, $noQuote)) {
                 $arr[$k] = $this->fullQuoteStr($v, $table, $allowNull);
             }
         }