zhangchangchun пре 5 година
родитељ
комит
3e0ae360d8
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Repositories/ShopRepository.php

+ 1 - 1
app/Repositories/ShopRepository.php

@@ -72,7 +72,7 @@ class ShopRepository {
         try{
             $shop = Shop::where(['shop_id'=>$shop_id])->update($data);
             $accountData = [];
-            if(isset($account) && isset($password)){
+            if(!empty($account) && !empty($password)){
                 $accountData['shop_id'] = $shop_id;
                 $accountData['account'] = $account;
                 $accountData['password'] = Hash::make($password);