From: Hypolite Petovan Date: Tue, 16 Oct 2018 03:13:00 +0000 (-0400) Subject: Fix notices in include/enotify X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=481b0ac138511825f3736342b40dd9b3a2e2a8d5;p=friendica.git Fix notices in include/enotify --- diff --git a/include/enotify.php b/include/enotify.php index b184a6935e..d8e5614c17 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -42,9 +42,9 @@ function notification($params) } $params['notify_flags'] = defaults($params, 'notify_flags', $user['notify-flags']); - $params['language'] = defaults($params, 'language', $user['language']); - $params['to_name'] = defaults($params, 'to_name', $user['username']); - $params['to_email'] = defaults($params, 'to_email', $user['email']); + $params['language'] = defaults($params, 'language' , $user['language']); + $params['to_name'] = defaults($params, 'to_name' , $user['username']); + $params['to_email'] = defaults($params, 'to_email' , $user['email']); // from here on everything is in the recipients language L10n::pushLang($params['language']); diff --git a/src/Database/DBStructure.php b/src/Database/DBStructure.php index 0472d753dd..f8fc1651c1 100644 --- a/src/Database/DBStructure.php +++ b/src/Database/DBStructure.php @@ -83,10 +83,11 @@ class DBStructure $body = sprintf($body, $error_message); notification([ - 'type' => SYSTEM_EMAIL, + 'uid' => $admin['uid'], + 'type' => SYSTEM_EMAIL, 'to_email' => $admin['email'], 'preamble' => $preamble, - 'body' => $body, + 'body' => $body, 'language' => $lang] ); }