X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwall_upload.php;h=45b45ae622a82b541423cf39a94a713f0505cc21;hb=6a8a36f12d00f35004fbb034972ca87dd1a3c4f5;hp=f5996d76f5de8dddf66279ea9788ce0b1316911f;hpb=293436e5fd5110220c969513858dbb979f1f35d3;p=friendica.git diff --git a/mod/wall_upload.php b/mod/wall_upload.php index f5996d76f5..45b45ae622 100644 --- a/mod/wall_upload.php +++ b/mod/wall_upload.php @@ -15,7 +15,7 @@ function wall_upload_post(&$a, $desktopmode = true) { dbesc($nick) ); - if(! count($r)){ + if(! dbm::is_result($r)){ if ($r_json) { echo json_encode(array('error'=>t('Invalid request.'))); killme(); @@ -63,7 +63,7 @@ function wall_upload_post(&$a, $desktopmode = true) { intval($contact_id), intval($page_owner_uid) ); - if(count($r)) { + if(dbm::is_result($r)) { $can_post = true; $visitor = $contact_id; }