Fixed problems with bulk module edit. Tiquet: #2837
This commit is contained in:
parent
03bbdd1ab2
commit
05f45e2692
|
@ -432,11 +432,21 @@ function modules_update_agent_module ($id, $values,
|
|||
|
||||
$result = @db_process_sql_update ('tagente_modulo', $values, $where);
|
||||
|
||||
if (($result === false) || ($result_disable === ERR_GENERIC)) {
|
||||
return ERR_DB;
|
||||
if ($result == false) {
|
||||
if ($result_disable == ERR_GENERIC ){
|
||||
return ERR_DB;
|
||||
}
|
||||
else{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
if ($result_disable == ERR_GENERIC ){
|
||||
return ERR_DB;
|
||||
}
|
||||
else{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue