* Fix undefined variable consumer.

This commit is contained in:
qixinzhi
2023-11-23 19:12:50 +08:00
parent 3a30c29fe6
commit b1fcdd02a7
+1 -1
View File
@@ -258,7 +258,7 @@ class cron extends control
if($setting->value > $expirDate)
{
$consumerCount ++;
if($consumer < $this->config->cron->maxConsumer && $setting->key == strval($execId)) $roles[] = 'consumer';
if($consumerCount < $this->config->cron->maxConsumer && $setting->key == strval($execId)) $roles[] = 'consumer';
}
else
{