X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmodexp.php;h=3c5d1e35818bfc11658e20cf289d18324bd25d6d;hb=74479c4020499e6aa7866b5478366932b723c515;hp=282d55a24bdfac026c81d20b1a79ff95b0feac4a;hpb=4d21671f75e35e7c2880467dddc0936e8c718d8c;p=friendica.git diff --git a/mod/modexp.php b/mod/modexp.php index 282d55a24b..3c5d1e3581 100644 --- a/mod/modexp.php +++ b/mod/modexp.php @@ -1,9 +1,10 @@ argc != 2) killme(); @@ -13,8 +14,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 +32,6 @@ function modexp_init(&$a) { echo 'RSA' . '.' . $m . '.' . $e ; killme(); + } -} +