Commit 92852753 authored by Dries's avatar Dries

- Small code improvement

parent d2175fdc
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment