Reapply "fix array_diff_assoc(): Argument #1 ($array) must be of type array, null given"

This reverts commit e210b7fafe.
This commit is contained in:
ralf 2024-02-15 20:30:01 +02:00
parent 24d19ec8c1
commit 369a5c69fd

View File

@ -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();