aboutsummaryrefslogtreecommitdiffstats
path: root/mod/poco.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/poco.php')
-rw-r--r--mod/poco.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/poco.php b/mod/poco.php
index c0dc2e133..f87bd8a68 100644
--- a/mod/poco.php
+++ b/mod/poco.php
@@ -7,7 +7,6 @@ function poco_init(&$a) {
if(intval(get_config('system','block_public')))
http_status_exit(401);
-
$observer = $a->get_observer();
if(argc() > 1) {
@@ -15,7 +14,7 @@ function poco_init(&$a) {
}
if(! x($user)) {
$c = q("select * from pconfig where cat = 'system' and k = 'suggestme' and v = 1");
- if(! count($c))
+ if(! $c)
http_status_exit(401);
$system_mode = true;
}