This commit is contained in:
Laurent Destailleur 2021-04-18 23:27:39 +02:00
parent a1acc896e2
commit 1988703a60

View File

@ -1366,7 +1366,7 @@ if ($action == 'updatecss' && $usercanedit) {
$error++;
setEventMessages($langs->trans('ErrorFaviconMustBeASquaredImage'), array(), 'errors');
}
if (! $error && ($filesize[0] != 16 || $filesize[0] != 32 || $filesize[0] != 64)) {
if (! $error && ($filesize[0] != 16 && $filesize[0] != 32 && $filesize[0] != 64)) {
$error++;
setEventMessages($langs->trans('ErrorFaviconSize'), array(), 'errors');
}