X-Git-Url: https://git-public.kairo.at/?p=authserver.git;a=blobdiff_plain;f=app%2Fauthutils.php-class;h=e5a080b0c6c77ffd6c8e2b3545348ab625eb4ef6;hp=f76ac18f9ffc9245f8def3d43dbbd16c1cd4630f;hb=9cab985cf8d73f719cd7efc2838ce2e107b45b21;hpb=8b69f29ccce4f236a8954a80c837bcd20987ca53
diff --git a/app/authutils.php-class b/app/authutils.php-class
index f76ac18..e5a080b 100755
--- a/app/authutils.php-class
+++ b/app/authutils.php-class
@@ -195,14 +195,14 @@ class AuthUtils {
}
else {
$utils->log('create_session_failure', 'at login, prev session: '.$session['id'].', new user: '.$userid);
- $errors[] = _('The session system is not working. Please contact KaiRo.at and tell the team about this.');
+ $errors[] = _('The session system is not working.').' '._('Please contact KaiRo.at and tell the team about this.');
}
}
else {
$result = $this->db->prepare('UPDATE `auth_sessions` SET `sesskey` = :sesskey, `user` = :userid, `logged_in` = TRUE, `time_expire` = :expire WHERE `id` = :sessid;');
if (!$result->execute(array(':sesskey' => $sesskey, ':userid' => $userid, ':expire' => gmdate('Y-m-d H:i:s', strtotime('+1 day')), ':sessid' => $session['id']))) {
$utils->log('login_failure', 'session: '.$session['id'].', user: '.$userid);
- $errors[] = _('Login failed unexpectedly. Please contact KaiRo.at and tell the team about this.');
+ $errors[] = _('Login failed unexpectedly.').' '._('Please contact KaiRo.at and tell the team about this.');
}
else {
// After update, actually fetch the session row from the DB so we have all values.
@@ -359,7 +359,7 @@ class AuthUtils {
function negotiateLocale($supportedLanguages) {
$nlocale = $supportedLanguages[0];
$headers = getAllHeaders();
- $accLcomp = explode(',', $headers['Accept-Language']);
+ $accLcomp = explode(',', @$headers['Accept-Language']);
$accLang = array();
foreach ($accLcomp as $lcomp) {
if (strlen($lcomp)) {