]> git.mxchange.org Git - friendica.git/blobdiff - mod/modexp.php
More usage of dbm::is_result($r) instead of count($r):
[friendica.git] / mod / modexp.php
index 715ffe30c85f0c6d6da304aca511450329421b5f..d1dabb101b3834aec9d7ef9cbfe5f0d15e5e3920 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-include('library/asn1.php');
+require_once('library/asn1.php');
 
 function modexp_init(&$a) {
 
@@ -12,7 +12,7 @@ function modexp_init(&$a) {
                        dbesc($nick)
        );
 
-       if(! count($r))
+       if(! dbm::is_result($r))
                killme();
 
        $lines = explode("\n",$r[0]['spubkey']);