Mailer.php
authorAlan Knowles <alan@roojs.com>
Tue, 22 Sep 2015 03:21:25 +0000 (11:21 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 22 Sep 2015 03:21:25 +0000 (11:21 +0800)
Mailer.php

index cd18021..c704c4b 100644 (file)
@@ -537,8 +537,9 @@ class Pman_Core_Mailer {
         if (!$this->debug < 1) {
             return;
         }
-        if ($$this->debug < 2) {
+        if ($this->debug < 2) {
             echo '<PRE>' . $val. "\n";
+            return;
         }
         $fh = fopen('/tmp/core_mailer.log', 'a');
         fwrite($fh, date('Y-m-d H:i:s -') . json_encode($val) . "\n");