Fixed bug #8944: PHP-Error in class.em_index.php on line 4333
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Thu, 27 Nov 2008 14:40:46 +0000 (14:40 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Thu, 27 Nov 2008 14:40:46 +0000 (14:40 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4489 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/mod/tools/em/class.em_index.php

index 3e388a8..05242b1 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-27  Dmitry Dulepov  <dmitry.dulepov@gmail.com>
+
+       * Fixed bug #8944: PHP-Error in class.em_index.php on line 4333 (thanks to Stefan Geith)
+
 2008-11-25  Steffen Kamper  <info@sk-typo3.de>
 
        * Fixed bug #9725: double enquote in t3lib_htmlmail of returnPath
index 63e5fd5..582581a 100644 (file)
@@ -380,7 +380,7 @@ class SC_mod_tools_em_index extends t3lib_SCbase {
                $this->MCONF = $GLOBALS['MCONF'];
 
                        // Setting GPvars:
-               $this->CMD = t3lib_div::_GP('CMD');
+               $this->CMD = is_array(t3lib_div::_GP('CMD')) ? t3lib_div::_GP('CMD') : array();
                $this->lookUpStr = trim(t3lib_div::_GP('_lookUp'));
                $this->listRemote = t3lib_div::_GP('ter_connect');
                $this->listRemote_search = trim(t3lib_div::_GP('ter_search'));