diff options
author | Thomas Willingham <founder@kakste.com> | 2013-12-11 15:35:19 +0000 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2013-12-11 15:35:19 +0000 |
commit | d93ba783f54cf862bd91b231b7a9f7a19c657675 (patch) | |
tree | 9a2b1ab4131ebab2e4733920548016d7830d1e82 /mod | |
parent | b212da0bf89daf07ccbfcbb3ac745afc4f9bb1dd (diff) | |
download | volse-hubzilla-d93ba783f54cf862bd91b231b7a9f7a19c657675.tar.gz volse-hubzilla-d93ba783f54cf862bd91b231b7a9f7a19c657675.tar.bz2 volse-hubzilla-d93ba783f54cf862bd91b231b7a9f7a19c657675.zip |
Don't let nobody set an xconfig in safe search.
Diffstat (limited to 'mod')
-rw-r--r-- | mod/toggle_safesearch.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/toggle_safesearch.php b/mod/toggle_safesearch.php index 5fb18f694..3c800c4f3 100644 --- a/mod/toggle_safesearch.php +++ b/mod/toggle_safesearch.php @@ -3,6 +3,8 @@ function toggle_safesearch_init(&$a) { $observer = get_observer_hash(); +if (! $observer) + return; if($observer) $safe_mode = get_xconfig($observer,'directory','safe_mode'); |