]> git.mxchange.org Git - friendica.git/blobdiff - mod/modexp.php
Merge pull request #3110 from tobiasd/20170127-translationdocs
[friendica.git] / mod / modexp.php
index 282d55a24bdfac026c81d20b1a79ff95b0feac4a..4cc9522479c182767b60a013ade77205863f0287 100644 (file)
@@ -2,8 +2,7 @@
 
 require_once('library/asn1.php');
 
-if(! function_exists('modexp_init')) {
-function modexp_init(&$a) {
+function modexp_init(App $a) {
 
        if($a->argc != 2)
                killme();
@@ -13,8 +12,9 @@ function modexp_init(&$a) {
                        dbesc($nick)
        );
 
-       if(! count($r))
+       if (! dbm::is_result($r)) {
                killme();
+       }
 
        $lines = explode("\n",$r[0]['spubkey']);
        unset($lines[0]);
@@ -30,5 +30,6 @@ function modexp_init(&$a) {
        echo 'RSA' . '.' . $m . '.' . $e ;
 
        killme();
+
 }
-}
+