Browse Source

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

PHP: Fix validation error
Hamilton Turner 11 năm trước cách đây
mục cha
commit
902ed0e127
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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.