From: Simon McVittie Date: Tue, 16 Dec 2014 08:11:59 +0000 (+0000) Subject: Fix getlibdirs when libdirs is unset X-Git-Tag: 3.20150107~17 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/f570c89214ad14df06dd2c937596793cd91402f6 Fix getlibdirs when libdirs is unset --- diff --git a/IkiWiki.pm b/IkiWiki.pm index 41baa6613..7afd57993 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -569,7 +569,10 @@ sub getsetup () { } sub getlibdirs () { - my @libdirs = @{$config{libdirs}}; + my @libdirs; + if ($config{libdirs}) { + @libdirs = @{$config{libdirs}}; + } if (length $config{libdir}) { push @libdirs, $config{libdir}; } diff --git a/doc/bugs/getlibdirs_function_failure.mdwn b/doc/bugs/getlibdirs_function_failure.mdwn index 68d432633..ac909f724 100644 --- a/doc/bugs/getlibdirs_function_failure.mdwn +++ b/doc/bugs/getlibdirs_function_failure.mdwn @@ -11,3 +11,5 @@ This error is triggered when $config{libdirs} is undefined; it didn't happen in A simple patch would be to alter that line to this: my @libdirs = $config{libdirs} ? @{$config{libdirs}} : (); + +> [[Fixed|done]], sorry about that --[[smcv]]