From: Philipp Holzer Date: Wed, 27 Feb 2019 19:30:08 +0000 (+0100) Subject: '%' is deprecated X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=739449926cb1af9cdd948d164caa21f896d69b9f;p=friendica.git '%' is deprecated --- diff --git a/src/Core/Update.php b/src/Core/Update.php index 1a1566ad84..115abbab15 100644 --- a/src/Core/Update.php +++ b/src/Core/Update.php @@ -209,8 +209,7 @@ class Update */ private static function updateFailed($update_id, $error_message) { //send the administrators an e-mail - $admin_mail_list = explode(",", str_replace(" ", "", Config::get('config', 'admin_email'))); - $adminlist = DBA::select('user', ['uid', 'language', 'email'], ['`email` IN (%s)', $admin_mail_list]); + $adminlist = DBA::select('user', ['uid', 'language', 'email'], ['email' => explode(",", str_replace(" ", "", Config::get('config', 'admin_email')))]); // No valid result? if (!DBA::isResult($adminlist)) { @@ -251,8 +250,7 @@ class Update private static function updateSuccessfull($from_build, $to_build) { //send the administrators an e-mail - $admin_mail_list = explode(",", str_replace(" ", "", Config::get('config', 'admin_email'))); - $adminlist = DBA::select('user', ['uid', 'language', 'email'], ['`email` IN (%s)', $admin_mail_list]); + $adminlist = DBA::select('user', ['uid', 'language', 'email'], ['email' => explode(",", str_replace(" ", "", Config::get('config', 'admin_email')))]); if (DBA::isResult($adminlist)) { // every admin could had different language