Skip to content

Commit

Permalink
[4.1] Fix generate web cron key (#37868)
Browse files Browse the repository at this point in the history
* Update schedulerunner.php

* Code simplify
  • Loading branch information
joomdonation authored Jun 5, 2022
1 parent c698359 commit 9ba30f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/system/schedulerunner/schedulerunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,7 @@ public function generateWebcronKey(EventInterface $event): void
/** @var Extension $table */
[$context, $table] = $event->getArguments();

if ($context !== 'com_config.component'
|| ($table->name ?? '') !== 'COM_SCHEDULER')
if ($context !== 'com_config.component' || $table->name !== 'com_scheduler')
{
return;
}
Expand Down

0 comments on commit 9ba30f7

Please sign in to comment.