From 935157fedc89fc00efb9c4a385f9e376352139ae Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 14 Jul 2007 17:45:35 +0000 Subject: [PATCH] r1574: In NotificationCenter::_localeFromUserId() we now take into account when the language isn't set that we should use the default one --- includes/class_notification.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/class_notification.php b/includes/class_notification.php index 38cfafb..7c7e9a1 100644 --- a/includes/class_notification.php +++ b/includes/class_notification.php @@ -616,7 +616,10 @@ class NotificationCenter */ function _localeFromUserId($userid) { - return $this->registry->datastore['language'][$this->users[$userid]['languageid']]['langcode']; + $langid = $this->users[$userid]['languageid']; + $langid = (!$langid ? $this->registry->options['defaultlanguage'] : $langid); + + return $this->registry->datastore['language'][$langid]['langcode']; } } -- 2.43.5