More safe search - since the default is one, toggle only works after

an initial xconfig is set - the first one will turn safe search on
(ie, do nothing from a users point of view).  Fix that.
This commit is contained in:
Thomas Willingham
2013-11-11 06:13:17 +00:00
parent c392004290
commit 888d7e05bf
2 changed files with 5 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ function dir_safe_mode(&$a) {
if ($observer)
$safe_mode = get_xconfig($observer,'directory','safe_mode');
if($safe_mode == 0)
if($safe_mode === '0')
$toggle = t('Enable Safe Search');
else
$toggle = t('Disable Safe Search');