]> git.mxchange.org Git - friendica.git/commitdiff
Fix notices in include/enotify
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 16 Oct 2018 03:13:00 +0000 (23:13 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 16 Oct 2018 03:13:00 +0000 (23:13 -0400)
include/enotify.php
src/Database/DBStructure.php

index b184a6935e08add322c137ccfa63cba6c2c469ff..d8e5614c171034ae4270eb5d38bceaddb765400b 100644 (file)
@@ -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']);
index 0472d753ddba2620a831ce6618fe85ed1fd57954..f8fc1651c140ece8dffd8385f65097bdf1561638 100644 (file)
@@ -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]
                        );
                }