EventView.php
authorEdward <edward@roojs.com>
Fri, 24 Jul 2015 10:00:28 +0000 (18:00 +0800)
committerEdward <edward@roojs.com>
Fri, 24 Jul 2015 10:00:28 +0000 (18:00 +0800)
EventView.php

index cc47a5a..08bc4f0 100644 (file)
@@ -80,11 +80,11 @@ class Pman_Admin_EventView extends Pman
         
         echo '<BR/><PRE>'. htmlspecialchars($ev->remarks) . '</PRE>';
         
-        $json = json_decode($ev->remarks);
+        $json = json_decode($ev->remarks, true);
         
         if(json_last_error() == JSON_ERROR_NONE){
             echo "<HR><H2>JSON DECODE Data:</H2>";
-            echo '<PRE>' . htmlspecialchars(print_r($json), true)) . '</PRE>';
+            echo '<PRE>' . htmlspecialchars(print_r($json)) . '</PRE>';
         }
         
         $filesJ = json_decode(file_get_contents($file));