- Bugfix: don't display links that point to hidden/disabled pages.
parent
e28981f072
commit
eea53076d9
|
@ -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>";
|
||||
}
|
||||
|
|
|
@ -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>";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue