Fix UFBF_QuickSearch.
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 26 Mar 2011 14:36:03 +0000 (15:36 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 26 Mar 2011 14:36:47 +0000 (15:36 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
include/ufbuilder.inc.php

index fc7da8a..d46d0af 100644 (file)
@@ -720,7 +720,7 @@ class UFBF_Quick extends UFB_Field
         }
 
         if (count($strings)) {
-            if (S::user()->checkPerms('directory_private')) {
+            if (S::user() != null && S::user()->checkPerms('directory_private')) {
                 $flags = array();
             } else {
                 $flags = array('public');