Browse Source

verify Fixed fuel's db test

Mike Smith 11 years ago
parent
commit
57e29ab6c8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      php-fuel/fuel/app/classes/controller/bench.php

+ 4 - 0
php-fuel/fuel/app/classes/controller/bench.php

@@ -18,6 +18,10 @@ class Controller_Bench extends Controller
             $worlds[] = Model_World::find(mt_rand(1, 10000))->toJson();
             $worlds[] = Model_World::find(mt_rand(1, 10000))->toJson();
         }
         }
 
 
+        if($queries == 1) {
+            $worlds = $worlds[0];
+        }
+
         return new Response(json_encode($worlds), 200, array(
         return new Response(json_encode($worlds), 200, array(
             'Content-Type' => 'application/json'
             'Content-Type' => 'application/json'
         ));
         ));