[pLog-svn] r5216 - plog/branches/lifetype-1.2/class/plugin

mark at devel.lifetype.net mark at devel.lifetype.net
Thu Mar 29 02:04:12 EDT 2007


Author: mark
Date: 2007-03-29 02:04:12 -0400 (Thu, 29 Mar 2007)
New Revision: 5216

Modified:
   plog/branches/lifetype-1.2/class/plugin/pluginmanager.class.php
Log:
Fixed an undefined index notice after we removing plugin from LifeType.

Modified: plog/branches/lifetype-1.2/class/plugin/pluginmanager.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/plugin/pluginmanager.class.php	2007-03-29 05:53:31 UTC (rev 5215)
+++ plog/branches/lifetype-1.2/class/plugin/pluginmanager.class.php	2007-03-29 06:04:12 UTC (rev 5216)
@@ -310,7 +310,7 @@
         function getPlugins()
         {
             foreach( $this->_pluginList as $name ) {
-                if( $this->_pluginInstances["$name"] ) {
+                if( array_key_exists( $name, $this->_pluginInstances ) ) {
                     $this->_pluginInstances["$name"]->setBlogInfo( $this->_blogInfo );
                     $this->_pluginInstances["$name"]->setUserInfo( $this->_userInfo );
                     $this->_pluginInstances["$name"]->register();



More information about the pLog-svn mailing list