]> git.mxchange.org Git - friendica.git/blobdiff - mod/wall_upload.php
Cleanup for #3010 - added spaces, thanks to @annando .
[friendica.git] / mod / wall_upload.php
index f5996d76f5de8dddf66279ea9788ce0b1316911f..21d9bf49cb2de85a9218b05b7086bffe4a6d63cb 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;
                                }