[pLog-svn] r1646 - plog/trunk/class/plugin

Oscar Renalias oscar at renalias.net
Wed Mar 30 17:24:20 GMT 2005


does this solve this? http://bugs.plogworld.net/view.php?id=376

Oscar

On 30 Mar 2005, at 20:14, ork at devel.plogworld.net wrote:

> Author: ork
> Date: 2005-03-30 17:14:44 +0000 (Wed, 30 Mar 2005)
> New Revision: 1646
>
> Modified:
>    plog/trunk/class/plugin/pluginmanager.class.php
> Log:
> added isset() call
>
>
> Modified: plog/trunk/class/plugin/pluginmanager.class.php
> ===================================================================
> --- plog/trunk/class/plugin/pluginmanager.class.php	2005-03-30 
> 17:09:04 UTC (rev 1645)
> +++ plog/trunk/class/plugin/pluginmanager.class.php	2005-03-30 
> 17:14:44 UTC (rev 1646)
> @@ -295,7 +295,7 @@
>          {
>              // there can be more than one plugin registered for the 
> same event,
>              // so we need an array of plugin classes
> -            if( !is_array($this->_pluginEventList["$eventType"])) {
> +            if( !isset($this->_pluginEventList["$eventType"]) || 
> !is_array($this->_pluginEventList["$eventType"])) {
>                  $this->_pluginEventList["$eventType"] = Array();
>              }
>
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.plogworld.net
> http://devel.plogworld.net/mailman/listinfo/plog-svn
>




More information about the pLog-svn mailing list