Fixed bug #9977: Extensions class.ext_update.php scripts are executed even when exten...
authorSteffen Kamper <info@sk-typo3.de>
Mon, 22 Dec 2008 10:51:21 +0000 (10:51 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Mon, 22 Dec 2008 10:51:21 +0000 (10:51 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@4588 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index 8fe3270..cc09441 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-12-22  Steffen Kamper  <info@sk-typo3.de>
+
+       * Fixed bug #9977: Extensions class.ext_update.php scripts are executed even when extension isn't loaded
+
 2008-12-20  Steffen Kamper  <info@sk-typo3.de>
 
        * Fixed bug #8952: Flags are missing
index f7f4a5e..4651547 100644 (file)
@@ -1953,7 +1953,7 @@ EXTENSION KEYS:
                $absPath = $this->getExtPath($extKey,$list[$extKey]['type']);
 
                // Check updateModule:
-               if (@is_file($absPath.'class.ext_update.php'))  {
+               if (isset($list[$extKey]) && @is_file($absPath.'class.ext_update.php')) {
                        require_once($absPath.'class.ext_update.php');
                        $updateObj = new ext_update;
                        if (!$updateObj->access())      {