Эх сурвалжийг харах

verify Fixed php-yaf's db test

Mike Smith 11 жил өмнө
parent
commit
e86e3a7cc7

+ 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));
     }