- $admin_mails = explode(",", str_replace(" ", "", $a->config['admin_email']));
- foreach (admin_mails as $mail) {
- $admin = dba::selectFirst('user', ['uid', 'language', 'email'], ['email' => $mail]);
- if (!DBM::is_result($admin)) {
+ $admin_mails = explode(",", str_replace(" ", "", Config::get('config', 'admin_email')));
+ foreach ($admin_mails as $mail) {
+ $admin = DBA::selectFirst('user', ['uid', 'language', 'email', 'username'], ['email' => $mail]);
+ if (!DBA::isResult($admin)) {