[Phpfreechat-svn] SF.net SVN: phpfreechat: [1036] trunk/src/pfccommand.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2007-06-23 12:39:13
|
Revision: 1036 http://svn.sourceforge.net/phpfreechat/?rev=1036&view=rev Author: kerphi Date: 2007-06-23 05:36:56 -0700 (Sat, 23 Jun 2007) Log Message: ----------- Bug fix: sometime pfcCommand::Factory was returning NULL reference (thanks to Antinoo) Modified Paths: -------------- trunk/src/pfccommand.class.php Modified: trunk/src/pfccommand.class.php =================================================================== --- trunk/src/pfccommand.class.php 2007-06-11 16:31:36 UTC (rev 1035) +++ trunk/src/pfccommand.class.php 2007-06-23 12:36:56 UTC (rev 1036) @@ -65,8 +65,7 @@ $cmd_filename = $c->cmd_path.'/'.$cmd_name.'.class.php'; if (file_exists($cmd_filename)) require_once($cmd_filename); - if (!class_exists($cmd_classname)) - return NULL; + if (!class_exists($cmd_classname)) { $tmp = NULL; return $tmp; } $cmd =& new $cmd_classname; $cmd->name = $cmd_name; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |