Fixed PHP Warning of empty array

This commit is contained in:
mdtrooper 2014-11-06 15:45:20 +01:00
parent 596eabfe1e
commit 74c227f6c0

View File

@ -524,7 +524,11 @@ else {
}
if ($plugin_id != 0) {
// 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) {
modules_delete_agent_module ($pm['id_agente_modulo']);