From efc71b2a5121932b21a8f89aefb82f703632d439 Mon Sep 17 00:00:00 2001 From: Herb Date: Mon, 9 Dec 2024 09:26:44 -0500 Subject: [PATCH] Issue #4: check for config variable (#5) --- key.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/key.module b/key.module index 0a73ef2..8e270f1 100644 --- a/key.module +++ b/key.module @@ -359,7 +359,7 @@ function key_get_keys() { $configs[$key_config['id']] = $key_config; } - return is_array($configs) ? $configs : array(); + return (isset($configs) && is_array($configs)) ? $configs : array(); } /**