]> 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 282d55a24bdfac026c81d20b1a79ff95b0feac4a..d1dabb101b3834aec9d7ef9cbfe5f0d15e5e3920 100644 (file)
@@ -2,7 +2,6 @@
 
 require_once('library/asn1.php');
 
-if(! function_exists('modexp_init')) {
 function modexp_init(&$a) {
 
        if($a->argc != 2)
@@ -13,7 +12,7 @@ function modexp_init(&$a) {
                        dbesc($nick)
        );
 
-       if(! count($r))
+       if(! dbm::is_result($r))
                killme();
 
        $lines = explode("\n",$r[0]['spubkey']);
@@ -30,5 +29,6 @@ function modexp_init(&$a) {
        echo 'RSA' . '.' . $m . '.' . $e ;
 
        killme();
+
 }
-}
+