瀏覽代碼

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

PHP: Fix validation error
Hamilton Turner 10 年之前
父節點
當前提交
902ed0e127
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);
   $world = World::find_by_id($id);
   
   
   // Store result in array.
   // Store result in array.
-  $arr[] = $world->to_json();
+  $arr[] = $world->to_array();
 }
 }
 
 
 // Use the PHP standard JSON encoder.
 // Use the PHP standard JSON encoder.