mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
#12558 fixed SQL error when copying web module server status in debug_content field
This commit is contained in:
parent
e7ad23c477
commit
e5ccd88f61
@ -251,6 +251,11 @@ function modules_copy_agent_module_to_agent($id_agent_module, $id_destiny_agent,
|
|||||||
unset($new_module['id_agente_modulo']);
|
unset($new_module['id_agente_modulo']);
|
||||||
unset($new_module['id_agente']);
|
unset($new_module['id_agente']);
|
||||||
|
|
||||||
|
// Set debug content.
|
||||||
|
if (empty($new_module['debug_content']) === false) {
|
||||||
|
$new_module['debug_content'] = str_replace("'", '"', $new_module['debug_content']);
|
||||||
|
}
|
||||||
|
|
||||||
$id_new_module = modules_create_agent_module(
|
$id_new_module = modules_create_agent_module(
|
||||||
$id_destiny_agent,
|
$id_destiny_agent,
|
||||||
$new_module['nombre'],
|
$new_module['nombre'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user