[BUGFIX] Switch to List module on root page leads to blank page
authorThomas Löffler <loeffler@spooner-web.de>
Wed, 12 Sep 2012 06:41:50 +0000 (08:41 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Sat, 22 Sep 2012 17:54:23 +0000 (19:54 +0200)
Reproducable only with admin account. Switch to Page module, go to root
page (id = 0), switch to List module => blank page. Works only on
root page.

Change-Id: I476d8523a7c31db6a78bef99ad7cbf3b39b1239e
Releases: 6.0, 4.7, 4.6, 4.5
Resolves: #40781
Reviewed-on: http://review.typo3.org/14798
Reviewed-by: Thomas Loeffler
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/recordlist/mod1/index.php

index 316a6f4..177784f 100644 (file)
@@ -110,7 +110,7 @@ class SC_db_list {
                $this->perms_clause = $GLOBALS['BE_USER']->getPagePermsClause(1);
 
                        // GPvars:
-               $this->id = t3lib_div::_GP('id');
+               $this->id = (int) t3lib_div::_GP('id');
                $this->pointer = t3lib_div::_GP('pointer');
                $this->imagemode = t3lib_div::_GP('imagemode');
                $this->table = t3lib_div::_GP('table');