Explorar o código

verify Fixed php-yaf's db test

Mike Smith %!s(int64=11) %!d(string=hai) anos
pai
achega
e86e3a7cc7
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      php-yaf/app/modules/Bench/controllers/Raw.php

+ 4 - 0
php-yaf/app/modules/Bench/controllers/Raw.php

@@ -35,6 +35,10 @@ class RawController extends AbstractController
             $id = mt_rand(1, 10000);
         }
 
+        if (count($arr) == 1) {
+            $arr = $arr[0];
+        }
+
         header('Content-type: application/json');
         die(json_encode($arr));
     }