'%' is deprecated
This commit is contained in:
parent
4a47425bfd
commit
739449926c
|
@ -209,8 +209,7 @@ class Update
|
||||||
*/
|
*/
|
||||||
private static function updateFailed($update_id, $error_message) {
|
private static function updateFailed($update_id, $error_message) {
|
||||||
//send the administrators an e-mail
|
//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' => explode(",", str_replace(" ", "", Config::get('config', 'admin_email')))]);
|
||||||
$adminlist = DBA::select('user', ['uid', 'language', 'email'], ['`email` IN (%s)', $admin_mail_list]);
|
|
||||||
|
|
||||||
// No valid result?
|
// No valid result?
|
||||||
if (!DBA::isResult($adminlist)) {
|
if (!DBA::isResult($adminlist)) {
|
||||||
|
@ -251,8 +250,7 @@ class Update
|
||||||
private static function updateSuccessfull($from_build, $to_build)
|
private static function updateSuccessfull($from_build, $to_build)
|
||||||
{
|
{
|
||||||
//send the administrators an e-mail
|
//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' => explode(",", str_replace(" ", "", Config::get('config', 'admin_email')))]);
|
||||||
$adminlist = DBA::select('user', ['uid', 'language', 'email'], ['`email` IN (%s)', $admin_mail_list]);
|
|
||||||
|
|
||||||
if (DBA::isResult($adminlist)) {
|
if (DBA::isResult($adminlist)) {
|
||||||
// every admin could had different language
|
// every admin could had different language
|
||||||
|
|
Loading…
Reference in a new issue