[Phpfreechat-svn] SF.net SVN: phpfreechat: [947] trunk/src
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2007-02-09 11:17:00
|
Revision: 947 http://svn.sourceforge.net/phpfreechat/?rev=947&view=rev Author: kerphi Date: 2007-02-09 03:16:59 -0800 (Fri, 09 Feb 2007) Log Message: ----------- fix php notices : http://www.phpfreechat.net/forum/viewtopic.php?id=1201 Modified Paths: -------------- trunk/src/pfccommand.class.php trunk/src/pfccontainer.class.php Modified: trunk/src/pfccommand.class.php =================================================================== --- trunk/src/pfccommand.class.php 2007-02-09 10:21:22 UTC (rev 946) +++ trunk/src/pfccommand.class.php 2007-02-09 11:16:59 UTC (rev 947) @@ -227,6 +227,10 @@ // print_r($cmdtmp); $cmd =& pfcCommand::Factory($cmdtmp['cmdstr']); $cmdp = $cmdtmp['params']; + if (!isset($cmdp['param'])) $cmdp['param'] = ''; + if (!isset($cmdp['sender'])) $cmdp['sender'] = null; + if (!isset($cmdp['recipient'])) $cmdp['recipient'] = null; + if (!isset($cmdp['recipientid'])) $cmdp['recipientid'] = null; $cmdp['clientid'] = $clientid; // the clientid must be the current user one $cmdp['cmdtoplay'] = true; // used to run some specials actions in the command (ex: if the cmdtoplay is a 'leave' command, then show an alert to the kicked or banished user) if ($c->debug) Modified: trunk/src/pfccontainer.class.php =================================================================== --- trunk/src/pfccontainer.class.php 2007-02-09 10:21:22 UTC (rev 946) +++ trunk/src/pfccontainer.class.php 2007-02-09 11:16:59 UTC (rev 947) @@ -579,11 +579,13 @@ } } } + if ($incache) { - $ret = array('timestamp' => $ret['timestamp'], - 'value' => $ret['value']); - return $ret; + $ret2 = array(); + if (isset($ret['timestamp'])) $ret2['timestamp'] = $ret['timestamp']; + if (isset($ret['value'])) $ret2['value'] = $ret['value']; + return $ret2; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |