Browse Source

Merge pull request #1028 from roman-tsiupa-sociomantic/patch-1

PHP: Fix validation error
Hamilton Turner 10 years ago
parent
commit
902ed0e127
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.