Commit cdfa6b8e authored by Dries's avatar Dries

- Improvement #5388: removed unnecessary SQL queries when no URL aliases are defined.
parent 8a913ffe
......@@ -131,6 +131,7 @@ function drupal_get_path_map($action = "") {
}
if (is_null($map)) {
$map = array(); // make $map non-null in case no aliases are defined
$result = db_query("SELECT * FROM {url_alias}");
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