From 9718d246aa238f0f07deca7330460325955d0934 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 29 Jan 2013 19:42:38 +0000 Subject: [PATCH] Send not found xml response when an extension does not exist. --- includes/install/scripts/xml_handler.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/install/scripts/xml_handler.lua b/includes/install/scripts/xml_handler.lua index 440634bad2..d03a37008c 100644 --- a/includes/install/scripts/xml_handler.lua +++ b/includes/install/scripts/xml_handler.lua @@ -585,6 +585,7 @@ --get the cache if (trim(api:execute("module_exists", "mod_memcache")) == "true") then + if (user == nil) then user = "" end XML_STRING = trim(api:execute("memcache", "get directory:" .. user .. "@" .. domain_name)); if (XML_STRING == "-ERR NOT FOUND") then continue = true; @@ -850,7 +851,7 @@ end --if action --if the extension does not exist send "not found" - if (trim(XML_STRING) == "-ERR NOT FOUND") then + if (trim(XML_STRING) == "-ERR NOT FOUND" or XML_STRING == nil) then --send not found XML_STRING = [[