converted more to dbm::is_result() + added braces/space

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-12-20 15:37:27 +01:00
commit 51716957b2
13 changed files with 61 additions and 41 deletions

View file

@ -137,7 +137,7 @@ function dfrn_poll_init(App &$a) {
$c = q("SELECT * FROM `contact` WHERE `id` = %d LIMIT 1",
intval($r[0]['cid'])
);
if(! count($c)) {
if (! dbm::is_result($c)) {
xml_status(3, 'No profile');
}
$contact = $c[0];
@ -234,7 +234,7 @@ function dfrn_poll_post(App &$a) {
$c = q("SELECT * FROM `contact` WHERE `id` = %d LIMIT 1",
intval($r[0]['cid'])
);
if(! count($c)) {
if (! dbm::is_result($c)) {
xml_status(3, 'No profile');
}
$contact = $c[0];