diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 82d5e4b9bd..51500707f6 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-07-13 Miguel de Dios + + * godmode/modules/manage_network_templates_form.php: fixed the error + message when update with nothing a template (0 rows to update) . + 2010-07-13 Miguel de Dios * include/functions_filemanager.php: changed the form to upload one or more diff --git a/pandora_console/godmode/modules/manage_network_templates_form.php b/pandora_console/godmode/modules/manage_network_templates_form.php index d44d368b1b..2406cd2fd2 100644 --- a/pandora_console/godmode/modules/manage_network_templates_form.php +++ b/pandora_console/godmode/modules/manage_network_templates_form.php @@ -72,8 +72,8 @@ if (isset ($_GET["create"]) || isset ($_GET["update"])) { if ($id_np > 0) { //Profile exists $sql = sprintf ("UPDATE tnetwork_profile SET name = '%s', description = '%s' WHERE id_np = %d", $name, $description, $id_np); - $result = process_sql ($sql); - print_result_message ($result, + $result = process_sql ($sql); + print_result_message ($result !== false, __('Successfully updated network profile'), __('Error updating network profile')); } else {