From d925397b17a5fc55d7eb1298d0f5cb7b1433d832 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 3 Aug 2020 18:29:11 +0000 Subject: [PATCH] Fix SQL error --- mod/poco.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/poco.php b/mod/poco.php index 41a162727..bfa4957f1 100644 --- a/mod/poco.php +++ b/mod/poco.php @@ -128,7 +128,7 @@ function poco_init(App $a) { $contacts = DBA::selectToArray('owner-view', [], ['net-publish' => true], ['limit' => [$startIndex, $itemsPerPage]]); } else { Logger::log("Start query for user " . $user['nickname'], Logger::DEBUG); - $contacts = q("SELECT * FROM `contact` WHERE `uid` = %d AND NOT `blocked` AND NOT `pending` AND NOT `hiddden` AND NOT `archive` + $contacts = q("SELECT * FROM `contact` WHERE `uid` = %d AND NOT `blocked` AND NOT `pending` AND NOT `hidden` AND NOT `archive` AND NOT `failed` AND NOT `unsearchable` AND `network` IN ('%s', '%s', '%s', '%s') $sql_extra LIMIT %d, %d", intval($user['uid']),