diff options
author | Indieteq <admin@indieteq.com> | 2012-11-12 14:02:42 +0100 |
---|---|---|
committer | Indieteq <admin@indieteq.com> | 2012-11-12 14:02:42 +0100 |
commit | 6691618d2b2b8c93790938e80ae94c503610950f (patch) | |
tree | 1fdee62b6562867133b0065ba9bb4a2f8174f04e /Log.class.php | |
parent | 08b7d76cf8e671a4acec579baf4eecad40671a9a (diff) | |
download | php-mysql-pdo-database-class-6691618d2b2b8c93790938e80ae94c503610950f.zip php-mysql-pdo-database-class-6691618d2b2b8c93790938e80ae94c503610950f.tar.gz php-mysql-pdo-database-class-6691618d2b2b8c93790938e80ae94c503610950f.tar.bz2 |
Update Log.class.php
Diffstat (limited to 'Log.class.php')
-rw-r--r-- | Log.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Log.class.php b/Log.class.php index ec291cb..07ccd04 100644 --- a/Log.class.php +++ b/Log.class.php @@ -35,7 +35,7 @@ if(is_dir($this->path)) { if(!file_exists($log)) { - $fh = fopen($log, 'w') or die("Fatal Error !"); + $fh = fopen($log, 'a+') or die("Fatal Error !"); $logcontent = "Time : " . $date->format('H:i:s')."\r\n" . $message ."\r\n"; fwrite($fh, $logcontent); fclose($fh); @@ -45,7 +45,7 @@ } } else { - if(mkdir($this->path,0777) === true) // Check on true, Otherwise we would have a never-ending loop :S + if(mkdir($this->path,0777) === true) { $this->write($message); } |