[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:04 +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: Ic3b8f84a4ab3c3245605c6d527651cce18360558
Releases: 6.0, 4.7, 4.6, 4.5
Resolves: #40781
Reviewed-on: http://review.typo3.org/14799
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 1bcd41b..da111d5 100644 (file)
@@ -128,7 +128,7 @@ class SC_db_list {
                $this->perms_clause = $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');