Explorar o código

Fixed bug in #791

You were encoding an already encoded json =)
Roman Tsiupa %!s(int64=11) %!d(string=hai) anos
pai
achega
2403aab993
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.