- Bugfix: don't display links that point to hidden/disabled pages.

4.0.x
Dries Buytaert 2001-12-15 16:26:04 +00:00
parent e28981f072
commit eea53076d9
2 changed files with 2 additions and 2 deletions

View File

@ -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[] = "<a href=\"node.php?id=$page->nid\">$page->link</a>";
}

View File

@ -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[] = "<a href=\"node.php?id=$page->nid\">$page->link</a>";
}