mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
Fixed problems with bulk module edit. Tiquet: #2837
(cherry picked from commit 05f45e2692e2637fd43d5afedab849360b344cfa)
This commit is contained in:
parent
8077268520
commit
fbb3e507e2
@ -431,11 +431,21 @@ function modules_update_agent_module ($id, $values, $onlyNoDeletePending = false
|
||||
|
||||
$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…
x
Reference in New Issue
Block a user