summaryrefslogtreecommitdiff
path: root/program/include/rcube_shared.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-04-29 06:44:57 +0000
committeralecpl <alec@alec.pl>2008-04-29 06:44:57 +0000
commit257782150db70dbe852d1c71fe6fd8abda0229f0 (patch)
tree46291d36247da38fca40b51a432d7455b3f74078 /program/include/rcube_shared.inc
parent68ee9b12907a5f0b26851804561d2b88847f6932 (diff)
- improved messages list performance - patch from Justin Heesemann
Diffstat (limited to 'program/include/rcube_shared.inc')
-rw-r--r--program/include/rcube_shared.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index 556cffd50..eed9662f0 100644
--- a/program/include/rcube_shared.inc
+++ b/program/include/rcube_shared.inc
@@ -92,7 +92,8 @@ function rcube_browser()
function rcube_label($attrib)
{
global $sess_user_lang, $OUTPUT;
- static $sa_text_data, $s_language, $utf8_decode;
+ static $sa_text_data = false;
+ static $s_language, $utf8_decode;
// extract attributes
if (is_string($attrib))
@@ -106,7 +107,7 @@ function rcube_label($attrib)
// load localized texts
- if (!$sa_text_data || $s_language != $sess_user_lang)
+ if ($sa_text_data===false || $s_language != $sess_user_lang)
{
$sa_text_data = array();