mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Fixed PHP Warning of empty array
This commit is contained in:
parent
596eabfe1e
commit
74c227f6c0
@ -524,7 +524,11 @@ else {
|
|||||||
}
|
}
|
||||||
if ($plugin_id != 0) {
|
if ($plugin_id != 0) {
|
||||||
// Delete all the modules with this plugin
|
// Delete all the modules with this plugin
|
||||||
$plugin_modules = db_get_all_rows_filter('tagente_modulo', array('id_plugin' => $plugin_id));
|
$plugin_modules = db_get_all_rows_filter(
|
||||||
|
'tagente_modulo', array('id_plugin' => $plugin_id));
|
||||||
|
|
||||||
|
if (empty($plugin_modules))
|
||||||
|
$plugin_modules = array();
|
||||||
|
|
||||||
foreach ($plugin_modules as $pm) {
|
foreach ($plugin_modules as $pm) {
|
||||||
modules_delete_agent_module ($pm['id_agente_modulo']);
|
modules_delete_agent_module ($pm['id_agente_modulo']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user