* Fixed bug: htmlArea RTE calling t3lib_div::getUserObj() with an empty string
authorStanislas Rolland <typo3@sjbr.ca>
Mon, 4 Feb 2008 16:43:57 +0000 (16:43 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Mon, 4 Feb 2008 16:43:57 +0000 (16:43 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3058 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php

index cc8da64..019b6ce 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-02-04  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
+
+       * Fixed bug: htmlArea RTE calling t3lib_div::getUserObj() with an empty string
+
 2008-02-04  Benjamin Mack  <mack@xnos.org>
 
        * Fixed bug #7354: Filelist titles length was fixed to 30 characters, now uses value from user setup (Thanks to Stefano Cecere)
 2008-02-04  Benjamin Mack  <mack@xnos.org>
 
        * Fixed bug #7354: Filelist titles length was fixed to 30 characters, now uses value from user setup (Thanks to Stefano Cecere)
index 36f2c59..c956274 100644 (file)
@@ -1,3 +1,7 @@
+2008-02-04  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
+
+       * Fixed bug: htmlArea RTE calling t3lib_div::getUserObj() with an empty string
+
 2008-02-01  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
 
        * added feature #880: Click-enlarge for Images in htmlArea RTE
 2008-02-01  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
 
        * added feature #880: Click-enlarge for Images in htmlArea RTE
index feb51f5..1849112 100644 (file)
@@ -493,7 +493,10 @@ class tx_rtehtmlarea_base extends t3lib_rteapi {
                                        // Traverse registered plugins
                if (is_array($TYPO3_CONF_VARS['EXTCONF'][$this->ID]['plugins'])) {
                        foreach($TYPO3_CONF_VARS['EXTCONF'][$this->ID]['plugins'] as $pluginId => $pluginObjectConfiguration) {
                                        // Traverse registered plugins
                if (is_array($TYPO3_CONF_VARS['EXTCONF'][$this->ID]['plugins'])) {
                        foreach($TYPO3_CONF_VARS['EXTCONF'][$this->ID]['plugins'] as $pluginId => $pluginObjectConfiguration) {
-                               $plugin = &t3lib_div::getUserObj($pluginObjectConfiguration['objectReference']);
+                               $plugin = false;
+                               if (is_array($pluginObjectConfiguration) && count($pluginObjectConfiguration)) {
+                                       $plugin = &t3lib_div::getUserObj($pluginObjectConfiguration['objectReference']);
+                               }
                                if (is_object($plugin)) {
                                        if ($plugin->main($this)) {
                                                $this->registeredPlugins[$pluginId] = $plugin;
                                if (is_object($plugin)) {
                                        if ($plugin->main($this)) {
                                                $this->registeredPlugins[$pluginId] = $plugin;