Fixed bug #11980: TCEforms suggest defaultreceiver returns array or boolean (thanks...
[Packages/TYPO3.CMS.git] / t3lib / tceforms / class.t3lib_tceforms_suggest.php
index 7ea58c1..6c320af 100644 (file)
@@ -183,7 +183,7 @@ class t3lib_TCEforms_Suggest {
                        $params = array('value' => $search);
                        $rows = $receiverObj->queryTable($params);
 
-                       if (!$rows) {
+                       if (empty($rows)) {
                                continue;
                        }
                        $resultRows = t3lib_div::array_merge($resultRows, $rows);