From 6c76c91951d259f59b2b7a42b8fe895dcc0ef21b Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Wed, 23 Aug 2006 17:36:37 -0400 Subject: [PATCH] Updated Polish, Portuguese, Latvian, Chinese and Japanese localization --- program/include/main.inc | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/program/include/main.inc b/program/include/main.inc index c52b671..1a2b8c7 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -439,12 +439,12 @@ Inspired by Marco <P0L0_notspam_binware.org> */ // Check if we need to add domain - if ($CONFIG['username_domain'] && !strstr($user, '@')) + if (!empty($CONFIG['username_domain']) && !strstr($user, '@')) { if (is_array($CONFIG['username_domain']) && isset($CONFIG['username_domain'][$host])) $user .= '@'.$CONFIG['username_domain'][$host]; - else if (!empty($CONFIG['username_domain'])) - $user .= '@'.$CONFIG['username_domain']; + else if (is_string($CONFIG['username_domain'])) + $user .= '@'.$CONFIG['username_domain']; } @@ -1788,7 +1788,7 @@ */ function console($msg) { - if (is_string($msg)) + if (!is_string($msg)) $msg = var_export($msg, true); if (!($GLOBALS['CONFIG']['debug_level'] & 4)) -- Gitblit v1.9.1