Skip to content

Commit

Permalink
Fix "file_exists(): Passing null to parameter of type string is depre…
Browse files Browse the repository at this point in the history
…cated" (#1148)
  • Loading branch information
blackcoder87 authored Jan 1, 2025
1 parent 4299b76 commit 6f1bb77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/modules/events/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Config extends \Ilch\Config\Install
{
public $config = [
'key' => 'events',
'version' => '1.23.3',
'version' => '1.23.4',
'icon_small' => 'fa-solid fa-ticket',
'author' => 'Veldscholten, Kevin',
'link' => 'https://ilch.de',
Expand Down
2 changes: 1 addition & 1 deletion application/modules/events/mappers/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ public function delete(int $id)
->execute()
->fetchAssoc();

if (file_exists($imageRow['image'])) {
if (isset($imageRow['image']) && file_exists($imageRow['image'])) {
unlink($imageRow['image']);
}

Expand Down

0 comments on commit 6f1bb77

Please sign in to comment.