summaryrefslogtreecommitdiffstats
path: root/modules/lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lua')
-rw-r--r--modules/lua/lua_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/lua/lua_request.c b/modules/lua/lua_request.c
index 828fc2b6f5..e1c925d081 100644
--- a/modules/lua/lua_request.c
+++ b/modules/lua/lua_request.c
@@ -1236,7 +1236,7 @@ static int lua_ap_module_info(lua_State *L)
luaL_checktype(L, 1, LUA_TSTRING);
moduleName = lua_tostring(L, 1);
mod = ap_find_linked_module(moduleName);
- if (mod) {
+ if (mod && mod->cmds) {
const command_rec *cmd;
lua_newtable(L);
lua_pushstring(L, "commands");