diff --git a/themekey_base.inc b/themekey_base.inc
index 3fb8c1c..995dd51 100644
--- a/themekey_base.inc
+++ b/themekey_base.inc
@@ -221,7 +221,9 @@ function themekey_get_global_parameters() {

       if (themekey_match_path($path_condition, $parameters)) {
         foreach ($parameters['internal:temp_wildcards'] as $index => $item_wildcard) {
-          $global_parameters[$item['wildcards'][$index]] = $item_wildcard;
+          if (isset($item['wildcards'][$index])) {
+            $global_parameters[$item['wildcards'][$index]] = $item_wildcard;
+          }
         }

         if (count($item['callbacks'])) {
