浏览代码

Update LabsSettings controller

Daniel Supernault 6 年之前
父节点
当前提交
32c0019209
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app/Http/Controllers/Settings/LabsSettings.php

+ 3 - 1
app/Http/Controllers/Settings/LabsSettings.php

@@ -53,7 +53,9 @@ trait LabsSettings {
 			if($profile->is_suggestable == false) {
 				$profile->is_suggestable = true;
 				$changes = true;
-				SuggestionService::set($profile->id);
+				if($profile->statuses->count() > 0) {
+					SuggestionService::set($profile->id);
+				}
 			} 
 		} else {
 			$profile->is_suggestable = false;