From: miqrogroove Date: Wed, 13 Jun 2018 18:41:45 +0000 (-0400) Subject: Patch for #5202 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6365cf955c1fdb8e0af55f66f1853f13283e2240;p=friendica.git Patch for #5202 Add quotes to an erroneously unquoted callback so that PHP doesn’t treat it as a global constant. --- diff --git a/mod/register.php b/mod/register.php index 81919df105..a5477d9671 100644 --- a/mod/register.php +++ b/mod/register.php @@ -134,7 +134,7 @@ function register_post(App $a) } // send email to admins - $admin_mail_list = "'" . implode("','", array_map(dbesc, explode(",", str_replace(" ", "", $a->config['admin_email'])))) . "'"; + $admin_mail_list = "'" . implode("','", array_map('dbesc', explode(",", str_replace(" ", "", $a->config['admin_email'])))) . "'"; $adminlist = q("SELECT uid, language, email FROM user WHERE email IN (%s)", $admin_mail_list );