Merge pull request #8809 from MrPetovan/bug/8808-db-error-contact

Add expected whitespace before Widget::unavailableNetworks() output
This commit is contained in:
Michael Vogel 2020-06-25 05:48:03 +02:00 committed by GitHub
commit e1e06459b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)) {