Prechádzať zdrojové kódy

verify Fixed kohana's db test

Mike Smith 11 rokov pred
rodič
commit
33c7dd72e9

+ 4 - 0
php-kohana/application/classes/Controller/Bench.php

@@ -24,6 +24,10 @@ Class Controller_Bench extends Controller
             $worlds[] = $query->param(':id', mt_rand(1, 10000))->execute()->current();
         }
 
+        if ($queries == 1) {
+            $worlds = $worlds[0];
+        }
+
         $this->response
             ->headers(array('Content-Type' => 'application/json'))
             ->body(json_encode($worlds));