converted more to dbm::is_result() + added braces/space
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
0e58bf6675
commit
51716957b2
13 changed files with 61 additions and 41 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue