[BUGFIX] Recycler ignores depth setting
[Packages/TYPO3.CMS.git] / typo3 / sysext / recycler / Classes / Domain / Model / DeletedRecords.php
index c4dde1c..77d2dcc 100644 (file)
@@ -227,7 +227,7 @@ class DeletedRecords {
                        if ($allowDepth && $depth >= 1) {
                                // check recursively for elements beneath this page
                                $resPages = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', 'pages', 'pid=' . $id, '', 'sorting');
-                               if (is_resource($resPages)) {
+                               if ($resPages) {
                                        while ($rowPages = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($resPages)) {
                                                $this->setData($rowPages['uid'], $table, $depth - 1, $tcaCtrl, $filter);
                                                // some records might have been added, check if we still have the limit for further queries