mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
fixes #1230 no groups error
Avoid using count on the groups variables if it is empty or undefined with ternary expression
This commit is contained in:
@@ -94,7 +94,7 @@ var rootUrl = '{$ROOT_URL}'
|
||||
|
||||
|
||||
<div class="titrePage">
|
||||
<h2>{'Group management'|@translate} <span class="badge-number"> {count($groups)}</span></h2>
|
||||
<h2>{'Group management'|@translate} <span class="badge-number">{(empty($groups)) ? 0 :count($groups)}</span></h2>
|
||||
</div>
|
||||
|
||||
<div class="selection-mode-group-manager">
|
||||
|
||||
Reference in New Issue
Block a user