diff --git a/src/Module/Contact.php b/src/Module/Contact.php index 99a299b571..9f34715404 100644 --- a/src/Module/Contact.php +++ b/src/Module/Contact.php @@ -714,15 +714,14 @@ class Contact extends BaseModule $sql_values[] = $group; } - $sql_extra .= Widget::unavailableNetworks(); - $total = 0; $stmt = DBA::p("SELECT COUNT(*) AS `total` FROM `contact` WHERE `uid` = ? AND `self` = 0 AND NOT `deleted` - $sql_extra", + $sql_extra + " . Widget::unavailableNetworks(), $sql_values ); if (DBA::isResult($stmt)) {