aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/profilefields/lang_helper.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-01-18 12:40:12 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-01-18 12:40:12 +0100
commit876e5e5fbbf3049da2b96eacc7b13b29dd484642 (patch)
treecebc0fec71bac9af28c332c5563e01f675670146 /phpBB/phpbb/profilefields/lang_helper.php
parent431fa7b59321376fa7ceb44ac62de30c6edb29a8 (diff)
downloadforums-876e5e5fbbf3049da2b96eacc7b13b29dd484642.tar
forums-876e5e5fbbf3049da2b96eacc7b13b29dd484642.tar.gz
forums-876e5e5fbbf3049da2b96eacc7b13b29dd484642.tar.bz2
forums-876e5e5fbbf3049da2b96eacc7b13b29dd484642.tar.xz
forums-876e5e5fbbf3049da2b96eacc7b13b29dd484642.zip
[ticket/11201] Cast some variables to integer
PHPBB3-11201
Diffstat (limited to 'phpBB/phpbb/profilefields/lang_helper.php')
-rw-r--r--phpBB/phpbb/profilefields/lang_helper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/profilefields/lang_helper.php b/phpBB/phpbb/profilefields/lang_helper.php
index cf4a248d1b..7bae1bdc18 100644
--- a/phpBB/phpbb/profilefields/lang_helper.php
+++ b/phpBB/phpbb/profilefields/lang_helper.php
@@ -70,9 +70,9 @@ class lang_helper
else
{
$sql = 'SELECT option_id, lang_value
- FROM ' . $this->language_table . "
- WHERE field_id = $field_id
- AND lang_id = $lang_id
+ FROM ' . $this->language_table . '
+ WHERE field_id = ' . (int) $field_id . '
+ AND lang_id = ' . (int) $lang_id . "
AND field_type = '" . $this->db->sql_escape($field_type) . "'
ORDER BY option_id";
$result = $this->db->sql_query($sql);