]> git.mxchange.org Git - friendica.git/blobdiff - mod/modexp.php
Fix profile wrong DISTINCT + ORDER BY
[friendica.git] / mod / modexp.php
index 715ffe30c85f0c6d6da304aca511450329421b5f..4cc9522479c182767b60a013ade77205863f0287 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 
-include('library/asn1.php');
+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]);