From 369a5c69fdfc7830ce65f5de00f7f87922549115 Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 15 Feb 2024 20:30:01 +0200 Subject: [PATCH] Reapply "fix array_diff_assoc(): Argument #1 ($array) must be of type array, null given" This reverts commit e210b7fafea801eb40a6704949978c79e78a683e. --- 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();