]> git.mxchange.org Git - friendica.git/blobdiff - mod/wall_upload.php
More usage of dbm::is_result($r) instead of count($r):
[friendica.git] / mod / wall_upload.php
index f5996d76f5de8dddf66279ea9788ce0b1316911f..45b45ae622a82b541423cf39a94a713f0505cc21 100644 (file)
@@ -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;
                                }