]> git.mxchange.org Git - friendica.git/commitdiff
Patch for #5202
authormiqrogroove <miqrogroove@gmail.com>
Wed, 13 Jun 2018 18:41:45 +0000 (14:41 -0400)
committerGitHub <noreply@github.com>
Wed, 13 Jun 2018 18:41:45 +0000 (14:41 -0400)
Add quotes to an erroneously unquoted callback so that PHP doesn’t treat it as a global constant.

mod/register.php

index 81919df105d605252151534443a7055f9fe33c01..a5477d967154e22bd539c2cc8818d1123a672170 100644 (file)
@@ -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
                );