From 393b7a7df8688e5315612bf5d153032dd9104df4 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sat, 11 Apr 2015 01:04:20 -0700 Subject: [PATCH] gitweb: fix test for $home_text file Using not instead of ! completely changed the evaluation of the expression due to differing operator precedence causing an attempt to insert a non-existent $home_text file. Replace 'not ' with '!' to get the correct expression evaluation result. Signed-off-by: Kyle J. McKay --- gitweb/gitweb.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 8c04eaccda..e357286005 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -6513,7 +6513,7 @@ sub git_frontpage { sub git_project_list { my ($projlist, $order) = git_project_list_load(); git_header_html(); - if (not $frontpage_no_project_list && defined $home_text && -f $home_text) { + if (!$frontpage_no_project_list && defined $home_text && -f $home_text) { print "
\n"; insert_file($home_text); print "
\n"; -- 2.11.4.GIT