]> git.mxchange.org Git - friendica.git/blobdiff - mod/receive.php
Again, static *OR* object-referencing calls? Blue or red pill?
[friendica.git] / mod / receive.php
index 4991ac47e81811b473597398a4c129df2c00b330..dd4e61ae4f95ce43cbb4fd8b47b1ae20c6072ae3 100644 (file)
@@ -34,7 +34,7 @@ function receive_post(&$a) {
                $r = q("SELECT * FROM `user` WHERE `guid` = '%s' AND `account_expired` = 0 AND `account_removed` = 0 LIMIT 1",
                        dbesc($guid)
                );
-               if(! count($r))
+               if(! dbm::is_result($r))
                        http_status_exit(500);
 
                $importer = $r[0];