X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmodexp.php;h=f64df0f9cbced5be10c273adccfec077b11689d1;hb=e5d020ff7c00e0d421a303dad723e88c7f4c9316;hp=d424b4c39d75f90652fdfb3be4837306ff113066;hpb=9c10ada9060c9745f49652469e172be8152f6cad;p=friendica.git diff --git a/mod/modexp.php b/mod/modexp.php index d424b4c39d..f64df0f9cb 100644 --- a/mod/modexp.php +++ b/mod/modexp.php @@ -1,21 +1,25 @@ 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 +34,5 @@ function modexp_init(&$a) { killme(); -} \ No newline at end of file +} +