[Phpfreechat-svn] SF.net SVN: phpfreechat: [739] trunk
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-09-08 20:56:06
|
Revision: 739 http://svn.sourceforge.net/phpfreechat/?rev=739&view=rev Author: kerphi Date: 2006-09-08 13:55:53 -0700 (Fri, 08 Sep 2006) Log Message: ----------- code cleaning (php notice) Modified Paths: -------------- trunk/debug/log.php trunk/lib/utf8/utf8_substr.php trunk/src/commands/getnewmsg.class.php Modified: trunk/debug/log.php =================================================================== --- trunk/debug/log.php 2006-09-08 20:54:35 UTC (rev 738) +++ trunk/debug/log.php 2006-09-08 20:55:53 UTC (rev 739) @@ -6,9 +6,9 @@ $filename = dirname(__FILE__)."/../data/private/debug".$section."_".$id.".log"; if (!file_exists($filename)) @touch($filename); - $fp = fopen($filename, 'a'); - fwrite($fp, "[".$id."] ".date("Y/m/d H:i:s - ").$msg."\n"); - fclose($fp); + $fp = @fopen($filename, 'a'); + @fwrite($fp, "[".$id."] ".date("Y/m/d H:i:s - ").$msg."\n"); + @fclose($fp); } ?> Modified: trunk/lib/utf8/utf8_substr.php =================================================================== --- trunk/lib/utf8/utf8_substr.php 2006-09-08 20:54:35 UTC (rev 738) +++ trunk/lib/utf8/utf8_substr.php 2006-09-08 20:55:53 UTC (rev 739) @@ -17,7 +17,7 @@ function utf8_substr($str,$start,$len=null) { if (!strcmp($len,'0')) return ''; - $byte_start = utf8_char2byte_pos($str,$start); + $byte_start = @utf8_char2byte_pos($str,$start); if ($byte_start === false) { if ($start > 0) { return false; // $start outside string length @@ -29,7 +29,7 @@ $str = substr($str,$byte_start); if ($len!=null) { - $byte_end = utf8_char2byte_pos($str,$len); + $byte_end = @utf8_char2byte_pos($str,$len); if ($byte_end === false) // $len outside actual string length return $len<0 ? '' : $str; // When length is less than zero and exceeds, then we return blank string. else Modified: trunk/src/commands/getnewmsg.class.php =================================================================== --- trunk/src/commands/getnewmsg.class.php 2006-09-08 20:54:35 UTC (rev 738) +++ trunk/src/commands/getnewmsg.class.php 2006-09-08 20:55:53 UTC (rev 739) @@ -44,6 +44,7 @@ } // check if this is the first time you get messages $oldmsg_sid = $c->prefix."oldmsg_".$c->getId()."_".$clientid."_".$recipientid; + $oldmsg = false; if (isset($_SESSION[$oldmsg_sid])) { unset($_SESSION[$oldmsg_sid]); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |