From 0513f8c31e01f9696c11babcaf44c55a0fe9199c Mon Sep 17 00:00:00 2001 From: Jacob Pipkin Date: Sun, 4 Nov 2012 10:25:53 -0600 Subject: get_sbo_location should return undef if it finds nothing --- SBO-Lib/lib/SBO/Lib.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'SBO-Lib/lib') diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index b829a3c..b34ba8f 100644 --- a/SBO-Lib/lib/SBO/Lib.pm +++ b/SBO-Lib/lib/SBO/Lib.pm @@ -243,7 +243,7 @@ sub get_sbo_location { seek $fh, 0, 0; } close $fh; - return %locations; + return %locations > 0 ? %locations : undef; } # pull the sbo name from a $location: $config{SBO_HOME}/system/wine, etc. -- cgit v1.2.3