This commit is contained in:
Jamie Cameron
2009-03-14 17:20:51 +00:00
parent bfa8db44e8
commit 977998399e

View File

@@ -159,7 +159,7 @@ if (!@rv || $@) {
open(DBS, "\"$config{'mysqlshow'}\" $authstr |");
local $t = &parse_mysql_table(DBS);
close(DBS);
ref($t) && &error("Failed to list databases : $t");
ref($t) || &error("Failed to list databases : $t");
@rv = map { $_->[0] } @{$t->{'data'}};
}
return @rv;