summaryrefslogtreecommitdiff
path: root/framework/I18N/core/MessageSource_SQLite.php
diff options
context:
space:
mode:
authorknut <>2008-08-06 01:34:06 +0000
committerknut <>2008-08-06 01:34:06 +0000
commitf7f3d150ef35c026bf6aee72e78362e263419e1a (patch)
tree6e060c20928f46a801e2087459a10958bf529685 /framework/I18N/core/MessageSource_SQLite.php
parent637d5678be83c5fae1b21848d53e4d90bd5c0b0d (diff)
fixed #898
Diffstat (limited to 'framework/I18N/core/MessageSource_SQLite.php')
-rw-r--r--framework/I18N/core/MessageSource_SQLite.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/framework/I18N/core/MessageSource_SQLite.php b/framework/I18N/core/MessageSource_SQLite.php
index 4448f801..22518bba 100644
--- a/framework/I18N/core/MessageSource_SQLite.php
+++ b/framework/I18N/core/MessageSource_SQLite.php
@@ -109,7 +109,7 @@ class MessageSource_SQLite extends MessageSource
"SELECT date_modified FROM catalogue WHERE name = '{$source}'",
$db);
- $result = $rs ? intval(sqlite_fetch_single($rs)) : 0;
+ $result = $rs ? (int)sqlite_fetch_single($rs) : 0;
sqlite_close($db);
@@ -129,7 +129,7 @@ class MessageSource_SQLite extends MessageSource
$rs = sqlite_query(
"SELECT COUNT(*) FROM catalogue WHERE name = '{$variant}'",
$db);
- $result = $rs && intval(sqlite_fetch_single($rs));
+ $result = $rs && (int)sqlite_fetch_single($rs);
sqlite_close($db);
return $result;
@@ -181,7 +181,7 @@ class MessageSource_SQLite extends MessageSource
if(sqlite_num_rows($rs) != 1)
return false;
- $cat_id = intval(sqlite_fetch_single($rs));
+ $cat_id = (int)sqlite_fetch_single($rs);
//first get the catalogue ID
$rs = sqlite_query(
@@ -189,7 +189,7 @@ class MessageSource_SQLite extends MessageSource
FROM trans_unit
WHERE cat_id = {$cat_id}", $db);
- $count = intval(sqlite_fetch_single($rs));
+ $count = (int)sqlite_fetch_single($rs);
sqlite_close($db);
@@ -351,4 +351,4 @@ class MessageSource_SQLite extends MessageSource
}
}
-?>
+?>