[Mapbender-commits] r1172 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Mar 2 11:18:35 EST 2007
Author: astrid_emde
Date: 2007-03-02 11:18:35 -0500 (Fri, 02 Mar 2007)
New Revision: 1172
Modified:
trunk/mapbender/http/classes/class_mb_exception.php
Log:
one row that wrote the exception in the file got lost
Modified: trunk/mapbender/http/classes/class_mb_exception.php
===================================================================
--- trunk/mapbender/http/classes/class_mb_exception.php 2007-03-02 14:24:57 UTC (rev 1171)
+++ trunk/mapbender/http/classes/class_mb_exception.php 2007-03-02 16:18:35 UTC (rev 1172)
@@ -30,8 +30,11 @@
function mb_exception($n){
if(is_dir($this->dir)){
$logfile = $this->dir . "mb_error_" . date("Y_m_d") . ".log";
- if($h = @fopen($logfile,"a")){
+ if($h = fopen($logfile,"a")){
$content = date("Y.m.d") . "," . date("H:i:s") . "," . $n .chr(13).chr(10);
+ if(!fwrite($h,$content)){
+ #exit;
+ }
fclose($h);
// $this->thrown = true;
}
More information about the Mapbender_commits
mailing list