Browse Source

Fixed busines parameter check again

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
bcb185d1b3
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/Utils/LuBusiness.php

+ 1
- 1
src/Utils/LuBusiness.php View File

35
      */
35
      */
36
     public static function checkParam($param, $validate = null)
36
     public static function checkParam($param, $validate = null)
37
     {
37
     {
38
-        if (!self::hasParam($param))
38
+        if (!self::hasParam(array($param)))
39
             abort(400, 'Missing parameter: ' . $param);
39
             abort(400, 'Missing parameter: ' . $param);
40
         $value = self::getParam($param);
40
         $value = self::getParam($param);
41
         if ($validate != null) {
41
         if ($validate != null) {

Loading…
Cancel
Save