From 888d7e05bf2fac41b52ab6b4094d6547174506c3 Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Mon, 11 Nov 2013 06:13:17 +0000 Subject: 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. --- include/dir_fns.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/dir_fns.php') diff --git a/include/dir_fns.php b/include/dir_fns.php index 0d0507059..7af98bec3 100644 --- a/include/dir_fns.php +++ b/include/dir_fns.php @@ -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'); -- cgit v1.2.3