aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/session.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-08-06 14:41:37 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-08-06 14:41:37 +0000
commit4d3add1686c222596f2875b71f77cdd587e42b16 (patch)
tree9c790a89f4cdc06c4fbfdaec17c97d556a9bd7a8 /phpBB/includes/session.php
parentdca78b88a07f87d72edc9dc113f88b36883e2527 (diff)
downloadforums-4d3add1686c222596f2875b71f77cdd587e42b16.tar
forums-4d3add1686c222596f2875b71f77cdd587e42b16.tar.gz
forums-4d3add1686c222596f2875b71f77cdd587e42b16.tar.bz2
forums-4d3add1686c222596f2875b71f77cdd587e42b16.tar.xz
forums-4d3add1686c222596f2875b71f77cdd587e42b16.zip
two fixes
git-svn-id: file:///svn/phpbb/trunk@8011 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r--phpBB/includes/session.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index 9d5f91a698..d1b70d41e5 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -1190,6 +1190,7 @@ class user extends session
var $dst;
var $lang_name;
+ var $lang_id = false;
var $lang_path;
var $img_lang;
var $img_array = array();
@@ -1720,7 +1721,7 @@ class user extends session
{
global $config, $db;
- if (isset($this->lang_id))
+ if (!empty($this->lang_id))
{
return $this->lang_id;
}
@@ -1734,10 +1735,10 @@ class user extends session
FROM ' . LANG_TABLE . "
WHERE lang_iso = '" . $db->sql_escape($this->lang_name) . "'";
$result = $db->sql_query($sql);
- $lang_id = (int) $db->sql_fetchfield('lang_id');
+ $this->lang_id = (int) $db->sql_fetchfield('lang_id');
$db->sql_freeresult($result);
- return $lang_id;
+ return $this->lang_id;
}
/**