From f913f2f8909497eb17698cd44e91571646d70769 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 14 Feb 2024 10:55:22 +0200 Subject: [PATCH] fix array_diff_assoc(): Argument #1 ($array) must be of type array, null given --- api/src/Preferences.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Preferences.php b/api/src/Preferences.php index 93b31c2fd0..bcaedee84b 100644 --- a/api/src/Preferences.php +++ b/api/src/Preferences.php @@ -891,7 +891,7 @@ class Preferences foreach($prefs as $app => $value) { // check if app preferences have changed, if not no need to save them - if ($old_prefs && !array_diff_assoc($old_prefs[$app], $value)) continue; + if ($old_prefs && !array_diff_assoc($old_prefs[$app] ?? [], $value)) continue; if (!$changed++) $this->db->transaction_begin();