diff --git a/modules/page.module b/modules/page.module index 31803526e44..af5fb17959b 100644 --- a/modules/page.module +++ b/modules/page.module @@ -53,7 +53,7 @@ function page_load($node) { function page_link($type) { if ($type == "page") { - $result = db_query("SELECT nid, link FROM page WHERE link != '' ORDER BY link"); + $result = db_query("SELECT nid, link FROM page WHERE status = '1' AND link != '' ORDER BY link"); while ($page = db_fetch_object($result)) { $links[] = "nid\">$page->link"; } diff --git a/modules/page/page.module b/modules/page/page.module index 31803526e44..af5fb17959b 100644 --- a/modules/page/page.module +++ b/modules/page/page.module @@ -53,7 +53,7 @@ function page_load($node) { function page_link($type) { if ($type == "page") { - $result = db_query("SELECT nid, link FROM page WHERE link != '' ORDER BY link"); + $result = db_query("SELECT nid, link FROM page WHERE status = '1' AND link != '' ORDER BY link"); while ($page = db_fetch_object($result)) { $links[] = "nid\">$page->link"; }