aboutsummaryrefslogtreecommitdiffstats
path: root/include/dir_fns.php
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-12-11 15:35:19 +0000
committerThomas Willingham <founder@kakste.com>2013-12-11 15:35:19 +0000
commitd93ba783f54cf862bd91b231b7a9f7a19c657675 (patch)
tree9a2b1ab4131ebab2e4733920548016d7830d1e82 /include/dir_fns.php
parentb212da0bf89daf07ccbfcbb3ac745afc4f9bb1dd (diff)
downloadvolse-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 'include/dir_fns.php')
-rw-r--r--include/dir_fns.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/dir_fns.php b/include/dir_fns.php
index 0c9a6bd9f..02e8186b7 100644
--- a/include/dir_fns.php
+++ b/include/dir_fns.php
@@ -22,7 +22,8 @@ function dir_sort_links() {
function dir_safe_mode() {
$observer = get_observer_hash();
-
+if (! $observer)
+ return;
if ($observer)
$safe_mode = get_xconfig($observer,'directory','safe_mode');
if($safe_mode === '0')