From 928527538757cffbaaee811d06ae7b6a99f2afe4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 9 Oct 2003 18:51:15 +0000 Subject: - Small code improvement --- includes/common.inc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index b58bb749f..99cdf8de5 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -39,10 +39,7 @@ function drupal_get_path_map($action = "") { } if (!$cache) { - if (!$result) { - $result = db_query("SELECT * FROM {path}"); - } - + $result = db_query("SELECT * FROM {path}"); while ($data = db_fetch_object($result)) { $map[$data->dst] = $data->src; } -- cgit v1.2.3