mirror of
https://git.dotclear.org/dev/dotclear.git
synced 2024-12-26 11:40:13 +00:00
No need to test twice if the array is empty or not :-p
This commit is contained in:
parent
b2be008dd1
commit
20bab77742
2 changed files with 2 additions and 2 deletions
|
@ -260,7 +260,7 @@ class BlogTheme extends Process
|
|||
App::behavior()->callBehavior('afterCheckStoreUpdate', 'themes', $tmp);
|
||||
|
||||
$defines = $tmp->getArrayCopy();
|
||||
$updates = !empty($defines) && count($defines) > 0 ? sprintf(' (%s)', count($defines)) : '';
|
||||
$updates = !empty($defines) ? sprintf(' (%s)', count($defines)) : '';
|
||||
|
||||
$list = fn () => App::backend()->list
|
||||
->setList('theme-update')
|
||||
|
|
|
@ -210,7 +210,7 @@ class Plugins extends Process
|
|||
App::behavior()->callBehavior('afterCheckStoreUpdate', 'plugins', $tmp);
|
||||
|
||||
$defines = $tmp->getArrayCopy();
|
||||
$updates = !empty($defines) && count($defines) > 0 ? sprintf(' (%s)', count($defines)) : '';
|
||||
$updates = !empty($defines) ? sprintf(' (%s)', count($defines)) : '';
|
||||
|
||||
echo
|
||||
'<div class="multi-part" id="update" title="' . Html::escapeHTML(__('Update plugins')) . $updates . '">' .
|
||||
|
|
Loading…
Reference in a new issue