From: Edward Date: Fri, 24 Jul 2015 10:00:28 +0000 (+0800) Subject: EventView.php X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=e8e507cbbbd78081f32cc320fce3631c91fb6395 EventView.php --- diff --git a/EventView.php b/EventView.php index cc47a5a..08bc4f0 100644 --- a/EventView.php +++ b/EventView.php @@ -80,11 +80,11 @@ class Pman_Admin_EventView extends Pman echo '
'. htmlspecialchars($ev->remarks) . '
'; - $json = json_decode($ev->remarks); + $json = json_decode($ev->remarks, true); if(json_last_error() == JSON_ERROR_NONE){ echo "

JSON DECODE Data:

"; - echo '
' . htmlspecialchars(print_r($json), true)) . '
'; + echo '
' . htmlspecialchars(print_r($json)) . '
'; } $filesJ = json_decode(file_get_contents($file));