Skip to content

Commit

Permalink
Use 'suppress' and avoid undefined index.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jun 15, 2015
1 parent 9943e1f commit b71879c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ansel/config/prefs.php
Expand Up @@ -90,9 +90,11 @@

$_prefs['facesperpage'] = array(
'value' => '20',
'locked' => !$GLOBALS['conf']['faces']['driver'],
'type' => 'number',
'desc' => _("Number of faces per page")
'desc' => _("Number of faces per page"),
'suppress' => function() {
return empty($GLOBALS['conf']['faces']['driver']);
}
);

$_prefs['groupsperpage'] = array(
Expand Down

0 comments on commit b71879c

Please sign in to comment.