Skip to content

Commit

Permalink
avoid warning in cron action
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Nov 8, 2023
1 parent 60fceb2 commit 63fbf51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action/cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public function qccron(Doku_Event $event, $param)
$fixme = $qc->getQCData($ID);

// when there are no quality problems we won't need the information
if ($this->isOk($fixme['err'])) {
unset($persist[$ID]);
if (!is_array($fixme) || $this->isOk($fixme['err'])) {
if(isset($persist[$ID])) unset($persist[$ID]);
} else {
$persist[$ID] = $fixme;
}
Expand Down

0 comments on commit 63fbf51

Please sign in to comment.