Changeset

3419:79e08dc3fd37

usermanager: Fix two nil global accesses
author Matthew Wild <mwild1@gmail.com>
date Sat, 31 Jul 2010 11:30:16 +0100
parents 3418:e75af8e6af54
children 3420:9be46a3466ef
files core/usermanager.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core/usermanager.lua	Sat Jul 31 15:16:15 2010 +0500
+++ b/core/usermanager.lua	Sat Jul 31 11:30:16 2010 +0100
@@ -107,7 +107,7 @@
 					break;
 				end
 			end
-		elseif admins then
+		elseif host_admins then
 			log("error", "Option 'admins' for host '%s' is not a list", host);
 		end
 	end
@@ -120,7 +120,7 @@
 					break;
 				end
 			end
-		elseif admins then
+		elseif global_admins then
 			log("error", "Global option 'admins' is not a list");
 		end
 	end