diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/path.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/path.inc b/includes/path.inc index cbbaff691..7d9fc1631 100644 --- a/includes/path.inc +++ b/includes/path.inc @@ -161,7 +161,7 @@ function drupal_cache_system_paths() { // Check if the system paths for this page were loaded from cache in this // request to avoid writing to cache on every request. $cache = &drupal_static('drupal_lookup_path', array()); - if (empty($cache['system_paths'])) { + if (empty($cache['system_paths']) && !empty($cache['map'])) { // Generate a cache ID (cid) specifically for this page. $cid = current_path(); // The static $map array used by drupal_lookup_path() includes all |