From e2e5061d1506652384ceed018aa4330b8548b792 Mon Sep 17 00:00:00 2001 From: Miguel Ribeiro Date: Wed, 10 Jul 2024 18:18:35 +0200 Subject: [PATCH] fix: error when logos folder is empty (#439) --- admin.php | 1 + includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/admin.php b/admin.php index 01ea806eb..c5fc31e59 100644 --- a/admin.php +++ b/admin.php @@ -232,6 +232,7 @@ class="one-third" value="" /> $stmt = $db->prepare($query); $result = $stmt->execute(); + $logosOnDisk = []; $logosOnDB = []; while ($row = $result->fetchArray(SQLITE3_ASSOC)) { $logosOnDB[] = $row['logo']; diff --git a/includes/version.php b/includes/version.php index 3aa6dd426..02b8f8eee 100644 --- a/includes/version.php +++ b/includes/version.php @@ -1,3 +1,3 @@ \ No newline at end of file