diff --git a/classes/boardmanager.php b/classes/boardmanager.php index c8ec3498..dfc16cef 100644 --- a/classes/boardmanager.php +++ b/classes/boardmanager.php @@ -931,8 +931,10 @@ public function update_card(int $cardid, array $data): void { ); helper::update_cached_timestamp($this->board->id, constants::MOD_KANBAN_CARD, $cardupdate['timemodified']); - if ($this->board->usenumbers) { - $cardupdate['description'] = numberfilter::filter($cardupdate['description']); + if (!empty($this->kanban->usenumbers)) { + if (isset($cardupdate['description'])) { + $cardupdate['description'] = numberfilter::filter($cardupdate['description']); + } } $this->formatter->put('cards', $cardupdate);