Skip to content

Commit dbbac8f

Browse files
authored
Merge pull request #1208 from stoneworld/master
fixed 批量生成接口 报错
2 parents 63bd44b + d0dbce7 commit dbbac8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Controllers/AdminController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ public function batchAddUsers(Request $request)
310310
$user->save();
311311

312312
// 初始化默认标签
313-
if (count(self::$systemConfig['initial_labels_for_user']) > 0) {
313+
if (!empty(self::$systemConfig['initial_labels_for_user'])) {
314314
$labels = explode(',', self::$systemConfig['initial_labels_for_user']);
315315
$this->makeUserLabels($user->id, $labels);
316316
}
@@ -2437,4 +2437,4 @@ private function makeUserLabels($userId, $labels = [])
24372437
}
24382438
}
24392439
}
2440-
}
2440+
}

0 commit comments

Comments
 (0)