summaryrefslogtreecommitdiff
path: root/framework/I18N/core/MessageSource_MySQL.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_MySQL.php
parent637d5678be83c5fae1b21848d53e4d90bd5c0b0d (diff)
fixed #898
Diffstat (limited to 'framework/I18N/core/MessageSource_MySQL.php')
-rw-r--r--framework/I18N/core/MessageSource_MySQL.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/I18N/core/MessageSource_MySQL.php b/framework/I18N/core/MessageSource_MySQL.php
index de7bea2b..317d53e2 100644
--- a/framework/I18N/core/MessageSource_MySQL.php
+++ b/framework/I18N/core/MessageSource_MySQL.php
@@ -186,7 +186,7 @@ class MessageSource_MySQL extends MessageSource
"SELECT date_modified FROM catalogue WHERE name = '{$source}'",
$this->db);
- $result = $rs ? intval(mysql_result($rs,0)) : 0;
+ $result = $rs ? (int)mysql_result($rs,0) : 0;
return $result;
}
@@ -256,7 +256,7 @@ class MessageSource_MySQL extends MessageSource
if(mysql_num_rows($rs) != 1)
return false;
- $cat_id = intval(mysql_result($rs,0));
+ $cat_id = (int)mysql_result($rs,0);
//first get the catalogue ID
$rs = mysql_query(
@@ -264,7 +264,7 @@ class MessageSource_MySQL extends MessageSource
FROM trans_unit
WHERE cat_id = {$cat_id}", $this->db);
- $count = intval(mysql_result($rs,0));
+ $count = (int)mysql_result($rs,0);
return array($cat_id, $variant, $count);
}
@@ -415,4 +415,4 @@ class MessageSource_MySQL extends MessageSource
}
-?>
+?>