X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmodexp.php;h=4cc9522479c182767b60a013ade77205863f0287;hb=f94a10bf00de699a5f3d22ea74665053a5661175;hp=d424b4c39d75f90652fdfb3be4837306ff113066;hpb=9c10ada9060c9745f49652469e172be8152f6cad;p=friendica.git diff --git a/mod/modexp.php b/mod/modexp.php index d424b4c39d..4cc9522479 100644 --- a/mod/modexp.php +++ b/mod/modexp.php @@ -1,21 +1,22 @@ argc != 2) killme(); $nick = $a->argv[1]; - $r = q("SELECT `pubkey` FROM `user` WHERE `nickname` = '%s' LIMIT 1", + $r = q("SELECT `spubkey` FROM `user` WHERE `nickname` = '%s' LIMIT 1", dbesc($nick) ); - if(! count($r)) + if (! dbm::is_result($r)) { killme(); + } - $lines = explode("\n",$r[0]['pubkey']); + $lines = explode("\n",$r[0]['spubkey']); unset($lines[0]); unset($lines[count($lines)]); $x = base64_decode(implode('',$lines)); @@ -30,4 +31,5 @@ function modexp_init(&$a) { killme(); -} \ No newline at end of file +} +