From 7b9fa73fcbc8b7943f9de812097fb97975ab27ea Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 19 Sep 2014 23:09:42 -0700 Subject: [PATCH] Make sure module is an empty string, so that SQL queries don't fail --- web-lib-funcs.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index e3ed2cacc..fd43ce398 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -3648,6 +3648,7 @@ sub get_module_acl { my $u = defined($_[0]) ? $_[0] : $base_remote_user; my $m = defined($_[1]) ? $_[1] : &get_module_name(); +$m ||= ""; my $mdir = &module_root_directory($m); my %rv; if (!$_[3]) {