$sql='SELECT * FROM '.$tbl_admin_languages.' WHERE id="'.Database::escape_string($parent_id).'"';
$sql='SELECT * FROM '.$tbl_admin_languages.' WHERE id="'.intval($parent_id).'"';
$rs=Database::query($sql);
$all_information=array();
while ($row=Database::fetch_array($rs,'ASSOC')) {
@ -76,7 +74,7 @@ class SubLanguageManager {
* @param String The chamilo path file (/var/www/chamilo/main/lang/spanish/gradebook.inc.php)
* @return Array Contains all information of chamilo file
*/
public static function get_all_language_variable_in_file($system_path_file,$get_as_string_index=false) {
public static function get_all_language_variable_in_file($system_path_file,$get_as_string_index=false) {
$res_list = array();
if (!is_readable($system_path_file)) {
return $res_list;
@ -146,7 +144,7 @@ class SubLanguageManager {
public static function remove_sub_language ($parent_id,$sub_language_id) {
if (empty($parent_id) or (intval($parent_id)!=$parent_id) or empty($sub_language_id) or (intval($sub_language_id) != $sub_language_id)) { return false; }