Browse Source

Fixed bug in #791

You were encoding an already encoded json =)
Roman Tsiupa 11 years ago
parent
commit
2403aab993
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frameworks/PHP/php/dborm.php

+ 1 - 1
frameworks/PHP/php/dborm.php

@@ -38,7 +38,7 @@ for ($i = 0; $i < $query_count; $i++) {
   $world = World::find_by_id($id);
   
   // Store result in array.
-  $arr[] = $world->to_json();
+  $arr[] = $world->to_array();
 }
 
 // Use the PHP standard JSON encoder.