Fix bug #3648: ease use of tslib_cObj::getTreeList()
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Tue, 30 Jan 2007 20:35:45 +0000 (20:35 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Tue, 30 Jan 2007 20:35:45 +0000 (20:35 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1962 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_content.php

index d887a68..29c59af 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
 
        * Fixing oddities in recursive stdWraps (bugs #4312 and #4871)
        * Fix bug #4678: t3lib_div::array2xml() may crash with PHP 5.2.0
+       * Fix bug #3648: ease use of tslib_cObj::getTreeList()
 
 2007-01-30  Dmitry Dulepov  <dmitry@typo3.org>
 
index 2218275..cf72091 100755 (executable)
@@ -6367,7 +6367,7 @@ class tslib_cObj {
 
                                // Select sublevel:
                        if ($depth>0)   {
-                               $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery($allFields, 'pages', 'pid='.intval($id).' AND deleted=0'.$moreWhereClauses, '' ,'sorting');
+                               $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery($allFields, 'pages', 'pid='.intval($id).' AND deleted=0 '.$moreWhereClauses, '' ,'sorting');
                                while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))      {
                                        $GLOBALS['TSFE']->sys_page->versionOL('pages',$row);
 
@@ -6380,7 +6380,7 @@ class tslib_cObj {
                                                        // Overlay mode:
                                                if (is_array($mount_info) && $mount_info['overlay'])    {
                                                        $next_id = $mount_info['mount_pid'];
-                                                       $res2 = $GLOBALS['TYPO3_DB']->exec_SELECTquery($allFields, 'pages', 'uid='.intval($next_id).' AND deleted=0'.$moreWhereClauses, '' ,'sorting');
+                                                       $res2 = $GLOBALS['TYPO3_DB']->exec_SELECTquery($allFields, 'pages', 'uid='.intval($next_id).' AND deleted=0 '.$moreWhereClauses, '' ,'sorting');
                                                        $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res2);
                                                        $GLOBALS['TSFE']->sys_page->versionOL('pages',$row);