From 15fd6a00fba70005e05cdd88fdb4e3fc80ac0d19 Mon Sep 17 00:00:00 2001 From: slerena Date: Fri, 29 Sep 2006 08:34:38 +0000 Subject: [PATCH] 2006-09-29 Sancho Lerena * bin/pandora_db.pm: Fixed small problem when undefined vars are referenced (min, max, descripcion) on line 1420+. (on Raul request). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@193 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/bin/pandora_db.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora_server/bin/pandora_db.pm b/pandora_server/bin/pandora_db.pm index 2c9a8d379b..7db39a21ff 100644 --- a/pandora_server/bin/pandora_db.pm +++ b/pandora_server/bin/pandora_db.pm @@ -1417,15 +1417,15 @@ sub crea_agente_modulo (%$$$$$$$) { my $modulo_id = dame_modulo_id($pa_config, $tipo_modulo,$dbh); my $agente_id = dame_agente_id($pa_config, $nombre_agente,$dbh); - if ($max eq ""){ + if ((!defined($max) || ($max eq "")){ $max =0; } - if ($min eq ""){ + if ((!defined($min) || ($min eq "")){ $min =0; } - if ($descripcion eq ""){ + if ((!defined($descripcion) || ($descripcion eq "")){ $descripcion="N/A"; }