summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2013-05-08 00:25:28 +0200
committerBenny Baumann <BenBE@geshi.org>2013-05-08 00:25:28 +0200
commit038939a2b94d753b09898ee2cd21c5a94d8a98a1 (patch)
tree706503e98349e4fea754dcaf50714f2aad93a70b
parent905a1b07019e3ed6b9d0d1d58b9af6ae64de6545 (diff)
parentfb9240fc954920e2d732ae77bc83a425b9015ccf (diff)
downloadcacert-devel-038939a2b94d753b09898ee2cd21c5a94d8a98a1.tar.gz
cacert-devel-038939a2b94d753b09898ee2cd21c5a94d8a98a1.tar.xz
cacert-devel-038939a2b94d753b09898ee2cd21c5a94d8a98a1.zip
Merge branch 'bug-28' into testserver-stable
-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');