]> git.mxchange.org Git - friendica.git/blobdiff - mod/modexp.php
Changed $a->get_baseurl() to App::get_baseurl()
[friendica.git] / mod / modexp.php
index bba2c2882d065e5fc2320f5ed8582718f5940b9a..5fc7012909e30b8a9380dd873cb66738abd2d005 100644 (file)
@@ -2,7 +2,7 @@
 
 require_once('library/asn1.php');
 
-function modexp_init(&$a) {
+function modexp_init(App &$a) {
 
        if($a->argc != 2)
                killme();
@@ -12,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]);