Parcourir la source

verify Fixed php-yaf's db test

Mike Smith il y a 11 ans
Parent
commit
e86e3a7cc7
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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));
     }