From 057ba367670232c1ed0eb71e609974237b8399a6 Mon Sep 17 00:00:00 2001 From: acli Date: Mon, 9 Feb 2004 22:36:32 +0000 Subject: [PATCH] Fix of bug 711, "No message named WhereisMySQL in Install.pm". Added defined() check for "Use of uninitialized value in -e at Install.pm line 2085, line 32." --- misc/Install.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/Install.pm b/misc/Install.pm index a4cfe8eb86..44b5590bbc 100644 --- a/misc/Install.pm +++ b/misc/Install.pm @@ -997,7 +997,7 @@ sub getmysqldir { } if (!$mysqldir){ for (;;) { - $mysqldir = showmessage(getmessage('WhereisMySQL'),'free'); + $mysqldir = showmessage(getmessage('WhereIsMySQL'),'free'); last if -f "$mysqldir/bin/mysqladmin"; } } @@ -2079,10 +2079,10 @@ sub backupmycnf { } sub restoremycnf { - if (-e $mycnf) { + if (defined $mycnf && -e $mycnf) { unlink($mycnf); } - if (-e $mytmpcnf) { + if (defined $mytmpcnf && -e $mytmpcnf) { rename $mytmpcnf,$mycnf; } } -- 2.39.5