From b52cdd773c10df895f306f4956e8b8294d875c0f Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 7 Dec 2009 06:07:19 +0000 Subject: #652420 by sun: Fixed Various failures everywhere caught by asserting on watchdog errors found in testing logs. --- includes/path.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') 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 -- cgit v1.2.3