summaryrefslogtreecommitdiff
path: root/framework/I18N/core/MessageSource_MySQL.php
diff options
context:
space:
mode:
authorknut <>2006-02-22 21:46:16 +0000
committerknut <>2006-02-22 21:46:16 +0000
commita30da2e71ad2ed23cbcb6011ab848ab888b2dd46 (patch)
tree1225b90b956f6489f504450bdd72ac63866224a5 /framework/I18N/core/MessageSource_MySQL.php
parent45ddffcfc4ff5b732f9f39719430b461345c8f7a (diff)
Did some minor optimization tweaks
Diffstat (limited to 'framework/I18N/core/MessageSource_MySQL.php')
-rw-r--r--framework/I18N/core/MessageSource_MySQL.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/I18N/core/MessageSource_MySQL.php b/framework/I18N/core/MessageSource_MySQL.php
index dab8de9f..67d86d87 100644
--- a/framework/I18N/core/MessageSource_MySQL.php
+++ b/framework/I18N/core/MessageSource_MySQL.php
@@ -225,9 +225,9 @@ class MessageSource_MySQL extends MessageSource
$variant = null;
- for($i = 0; $i < count($variants); $i++)
- {
- if(strlen($variants[$i])>0)
+ for($i = 0, $k = count($variants); $i < $k; ++$i)
+ {
+ if(isset($variants[$i]{0}))
{
$variant .= ($variant)?'_'.$variants[$i]:$variants[$i];
$catalogues[] = $catalogue.'.'.$variant;