Skip to content

Commit e7b04f4

Browse files
author
Hai Zheng
committed
Fixed Invalid option ID log for img optm pull cron.
1 parent 70faf94 commit e7b04f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/task.cls.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function init()
4444
$guest_optm = $this->conf(Base::O_GUEST) && $this->conf(Base::O_GUEST_OPTM);
4545

4646
foreach (self::$_triggers as $id => $trigger) {
47-
if (!$this->conf($id) && $id != Base::O_IMG_OPTM_CRON) {
47+
if ($id != Base::O_IMG_OPTM_CRON && !$this->conf($id)) {
4848
if (!$guest_optm || !in_array($id, self::$_guest_options)) {
4949
continue;
5050
}

0 commit comments

Comments
 (0)