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(); } /**