examples/tree/get-nodes.php
authorAlan Knowles <alan@roojs.com>
Tue, 10 Jul 2012 07:10:28 +0000 (15:10 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 10 Jul 2012 07:10:28 +0000 (15:10 +0800)
examples/tree/get-nodes.php

index 579b147..112fd44 100644 (file)
@@ -46,5 +46,5 @@ while (false !== ($f = readdir($dh))) {
 }
 closedir($dh);
 header('Content-type: text/javascript');
-echo json_encode(array('data'=>$ret));
+echo json_encode(array('success' => true, 'data'=>$ret));