[Phpfreechat-svn] SF.net SVN: phpfreechat: [777] trunk/src/phpfreechat.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-09-20 20:24:36
|
Revision: 777 http://svn.sourceforge.net/phpfreechat/?rev=777&view=rev Author: kerphi Date: 2006-09-20 13:24:30 -0700 (Wed, 20 Sep 2006) Log Message: ----------- Bug fix: the params type was considered as array but it can be an object if a pfcglobalconfig instance is passed Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2006-09-20 20:14:04 UTC (rev 776) +++ trunk/src/phpfreechat.class.php 2006-09-20 20:24:30 UTC (rev 777) @@ -38,7 +38,9 @@ function phpFreeChat( &$params ) { - if (isset($params["debug"]) && $params["debug"]) + if (!is_object($params) && + isset($params["debug"]) && + $params["debug"]) require_once dirname(__FILE__)."/../debug/log.php"; // check if the given parameters is a simple array This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |