Commit 308d1f20 authored by Dries's avatar Dries

- Patch #48993 by jvandyck: removed notices.

parent 7489c874
......@@ -849,7 +849,7 @@ function menu_primary_links($start_level = 1, $pid = 0) {
}
// Special case - provide link to admin/menu if primary links is empty.
if (is_null($links) && $start_level == 1 && $pid == variable_get('menu_primary_menu', 0)) {
if (empty($links) && $start_level == 1 && $pid == variable_get('menu_primary_menu', 0)) {
$links['1-1'] = l(t('edit primary links'),'admin/menu');
}
......
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