Changed sintaxis

Former-commit-id: 4011dbcba98ad59e7a152e2e3e87c6ae8d646a85
This commit is contained in:
marcos.alconada 2019-04-15 15:51:01 +02:00
parent 8c27411be6
commit 28eae48a9e
1 changed files with 4 additions and 4 deletions

View File

@ -113,7 +113,7 @@ if ($correctLogin) {
$id_os = db_get_value_sql('select id_os from tagente where id_agente = '.$id);
if ($id_os === 100) {
if ($id_os == 100) {
returnError('not_allowed_operation_cluster', $returnType);
return false;
}
@ -129,7 +129,7 @@ if ($correctLogin) {
$id_os = db_get_value_sql('select id_os from tagente where nombre = "'.$id.'"');
if ($id_os === 100) {
if ($id_os == 100) {
returnError('not_allowed_operation_cluster', $returnType);
return false;
}
@ -142,7 +142,7 @@ if ($correctLogin) {
$id_os = db_get_value_sql('select id_os from tagente where id_agente = (select id_agente from tagente_modulo where id_agente_modulo ='.$id.')');
if ($id_os === 100) {
if ($id_os == 100) {
returnError('not_allowed_operation_cluster', $returnType);
return false;
}
@ -151,7 +151,7 @@ if ($correctLogin) {
case 'get_info_user_name':
$id_os = get_info_user_name($type, $user);
if ($id_os === 100) {
if ($id_os == 100) {
returnError('not_allowed_operation_cluster', $returnType);
return false;
}