Browse Source

verify Fixed code-igniter db/queries tests

Mike Smith 11 years ago
parent
commit
6d94404a9d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      php-codeigniter/application/controllers/bench.php

+ 4 - 0
php-codeigniter/application/controllers/bench.php

@@ -24,6 +24,10 @@ class Bench extends CI_Controller {
                 ->row();
         }
 
+        if ($queries == 1) {
+            $worlds = $world[0];
+        }
+
         $this->output
             ->set_content_type('application/json')
             ->set_output(json_encode($worlds));