Commits

Jason McKesson committed d143d66

Fix for issue #50.

Comments (0)

Files changed (1)

modules/Styles.lua

 else
 	if(not status) then
 		--Error out, but only if the file is there found.
-		local lfs = pcall(require, "lfs")
-		if(lfs and lfs.attributes("modules/UserStyles.lua", "mode") == "file") then
+		local status, lfs = pcall(require, "lfs")
+		if(status and lfs.attributes("modules/UserStyles.lua", "mode") == "file") then
 			error(userStyles);
 		end
 	end