]> 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
old mode 100755 (executable)
new mode 100644 (file)
index 3fa4eae..1751b85
@@ -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();