commit events
authorChris <chris@roojs.com>
Wed, 3 Oct 2012 05:49:11 +0000 (13:49 +0800)
committerChris <chris@roojs.com>
Wed, 3 Oct 2012 05:49:11 +0000 (13:49 +0800)
DataObjects/Events.php

index df66f07..37bf51f 100644 (file)
@@ -419,12 +419,12 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
                 $p['passwd'] = '******';
             }
         }
-        
-        file_put_contents($file, var_export(array(
+         
+        file_put_contents($file, json_encode(var_export(array(
             'REQUEST_URI' => empty($_SERVER['REQUEST_URI']) ? 'cli' : $_SERVER['REQUEST_URI'],
             'GET' => empty($_GET) ? array() : $_GET,
             'POST' =>$p,
-        ), true));
+        )), true));
         
     }
 }