summaryrefslogtreecommitdiff
path: root/framework/I18N/core/MessageSource_SQLite.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/I18N/core/MessageSource_SQLite.php')
-rw-r--r--framework/I18N/core/MessageSource_SQLite.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/I18N/core/MessageSource_SQLite.php b/framework/I18N/core/MessageSource_SQLite.php
index 68aceaaf..ac98df77 100644
--- a/framework/I18N/core/MessageSource_SQLite.php
+++ b/framework/I18N/core/MessageSource_SQLite.php
@@ -148,9 +148,9 @@ class MessageSource_SQLite extends MessageSource
$variant = null;
- for($i = 0; $i < count($variants); $i++)
+ for($i = 0, $k = count($variants); $i < $k; ++$i)
{
- if(strlen($variants[$i])>0)
+ if(isset($variants[$i]{0}))
{
$variant .= ($variant)?'_'.$variants[$i]:$variants[$i];
$catalogues[] = $catalogue.'.'.$variant;