Browse Source

Updated home

north 7 years ago
parent
commit
d4717ae8c9
1 changed files with 4 additions and 2 deletions
  1. 4 2
      www/protected/controllers/HouseKeepingController.php

+ 4 - 2
www/protected/controllers/HouseKeepingController.php

@@ -72,8 +72,10 @@ class HouseKeepingController extends AdminController
         $cart = intval(Yii::app()->request->getParam('cart', 100));
         $skill = Yii::app()->request->getParam('skill_options');
         $skills = array();
-        foreach ($skill as $value) {
-            $skills[] = intval($value);
+        if (!empty($skill)) {
+            foreach ($skill as $value) {
+                $skills[] = intval($value);
+            }
         }
         $age = intval(Yii::app()->request->getParam('age', 0));
         $tech = (Yii::app()->request->getParam('tech', ''));