]> git.mxchange.org Git - friendica.git/blobdiff - mod/viewsrc.php
More usage of dbm::is_result($r) instead of count($r):
[friendica.git] / mod / viewsrc.php
index 3fa4eaed53bad2b53686a59aef0af30acf1f5645..1751b856f22e1928590116a4df3f75c17cb47daf 100644 (file)
@@ -24,7 +24,7 @@ function viewsrc_content(&$a) {
                dbesc($item_id)
        );
 
-       if(count($r))
+       if(dbm::is_result($r))
                if(is_ajax()) {
                        echo str_replace("\n",'<br />',$r[0]['body']);
                        killme();