[Phpfreechat-svn] SF.net SVN: phpfreechat: [958] trunk/src/proxies/log.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2007-02-15 17:27:15
|
Revision: 958 http://svn.sourceforge.net/phpfreechat/?rev=958&view=rev Author: kerphi Date: 2007-02-15 09:27:13 -0800 (Thu, 15 Feb 2007) Log Message: ----------- optimization : replace the in_array test by a isset test Modified Paths: -------------- trunk/src/proxies/log.class.php Modified: trunk/src/proxies/log.class.php =================================================================== --- trunk/src/proxies/log.class.php 2007-02-15 17:26:38 UTC (rev 957) +++ trunk/src/proxies/log.class.php 2007-02-15 17:27:13 UTC (rev 958) @@ -33,7 +33,7 @@ function run(&$xml_reponse, $p) { $cmdtocheck = array("send", "me", "notice"); - if ( in_array($this->name, $cmdtocheck) ) + if ( isset($cmdtocheck[$this->name]) ) { $clientid = $p["clientid"]; $param = $p["param"]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |