Revision: 496
Author: kerphi
Date: 2006-05-18 01:11:11 -0700 (Thu, 18 May 2006)
ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=496&view=rev
Log Message:
-----------
blind fix: should prevent some warnings.
Modified Paths:
--------------
branches/0.x/src/phpfreechatcontainermemory.class.php
Modified: branches/0.x/src/phpfreechatcontainermemory.class.php
===================================================================
--- branches/0.x/src/phpfreechatcontainermemory.class.php 2006-05-15 08:26:32 UTC (rev 495)
+++ branches/0.x/src/phpfreechatcontainermemory.class.php 2006-05-18 08:11:11 UTC (rev 496)
@@ -278,7 +278,7 @@
($c->container_cfg_sm_messages);
// remove old messages
- $content = array_slice($content, -$c->max_msg);
+ $content = array_slice(is_array($content)?$content:array(), -$c->max_msg);
$this->_memory->set
($c->container_cfg_sm_messages, $content);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|