fix warning 2nd array_diff parameter is null, not array

This commit is contained in:
Ralf Becker 2020-02-04 18:32:00 +01:00
parent 8b2f04607e
commit d41bbf4a4b

View File

@ -139,7 +139,10 @@ class admin_config
$_POST = array('newsettings' => &$_content['newsettings']);
// Remove actual files (cleanup) of deselected urls from login_background_file
$this->remove_anon_images(array_diff((array)$c->config_data['login_background_file'], $_content['newsettings']['login_background_file']));
if (!empty($c->config_data['login_background_file']))
{
$this->remove_anon_images(array_diff((array)$c->config_data['login_background_file'], (array)$_content['newsettings']['login_background_file']));
}
/* Load hook file with functions to validate each config (one/none/all) */
$errors = Api\Hooks::single(array(