summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2013-05-08 00:25:15 +0200
committerBenny Baumann <BenBE@geshi.org>2013-05-08 00:25:15 +0200
commitfb9240fc954920e2d732ae77bc83a425b9015ccf (patch)
tree3b631c84dbbafe6f7ee9b2596fe916d492b985c8 /includes
parent97dea8922675c16548252d63e91d7ad31f5ccad1 (diff)
downloadcacert-devel-fb9240fc954920e2d732ae77bc83a425b9015ccf.tar.gz
cacert-devel-fb9240fc954920e2d732ae77bc83a425b9015ccf.tar.xz
cacert-devel-fb9240fc954920e2d732ae77bc83a425b9015ccf.zip
bug 28: Fix self-references in this bug
Diffstat (limited to 'includes')
-rw-r--r--includes/lib/l10n.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/lib/l10n.php b/includes/lib/l10n.php
index 9bb5d52..4e1a867 100644
--- a/includes/lib/l10n.php
+++ b/includes/lib/l10n.php
@@ -341,17 +341,17 @@ class L10n {
textdomain($domain);
}
- public static function set_recipient_language($accoundid) {
+ public static function set_recipient_language($accountid) {
//returns the language of a recipient to make sure that the language is correct
//use together with
$query = "select `language` from `users` where `id`='".intval($accountid)."'";
$res = mysql_query($query);
if (mysql_num_rows($res)>=0) {
$row = mysql_fetch_assoc($res);
- if ($row['language']==Null || $row['language']=='') {
- $this->set_translation('en');
+ if (NULL==$row['language'] || $row['language']=='') {
+ self::set_translation('en');
} else {
- $this->set_translation($row['language']);
+ self::set_translation($row['language']);
}
} else {
$this->set_translation('en');