1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 12:14:06 +02:00

[ticket/11201] Cast some variables to integer

PHPBB3-11201
This commit is contained in:
Joas Schilling
2014-01-18 12:40:12 +01:00
parent 431fa7b593
commit 876e5e5fbb
2 changed files with 9 additions and 9 deletions

View File

@@ -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);