[Phpfreechat-svn] SF.net SVN: phpfreechat: [700] trunk/src/proxys/log.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-08-25 15:23:32
|
Revision: 700 Author: kerphi Date: 2006-08-25 08:23:26 -0700 (Fri, 25 Aug 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=700&view=rev Log Message: ----------- Small fix on the log proxy Modified Paths: -------------- trunk/src/proxys/log.class.php Modified: trunk/src/proxys/log.class.php =================================================================== --- trunk/src/proxys/log.class.php 2006-08-25 15:19:51 UTC (rev 699) +++ trunk/src/proxys/log.class.php 2006-08-25 15:23:26 UTC (rev 700) @@ -52,8 +52,9 @@ if ((file_exists($logfile) && is_writable($logpath)) || (!file_exists($logfile))) { - $fp = fopen($logfile, 'a'); + $fp = fopen($logfile, file_exists($logfile) ? 'a' : 'w'); fwrite($fp, $recipient." -> ".$param."\n"); + fclose($fp); } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |