- Fixed typo.

4.0.x
Dries Buytaert 2001-12-15 16:41:51 +00:00
parent eea53076d9
commit d03f42c35f
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 status = '1' AND link != '' ORDER BY link");
$result = db_query("SELECT n.nid, p.link FROM page p LEFT JOIN node n ON p.nid = n.nid WHERE n.status = '1' AND p.link != '' ORDER BY p.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 status = '1' AND link != '' ORDER BY link");
$result = db_query("SELECT n.nid, p.link FROM page p LEFT JOIN node n ON p.nid = n.nid WHERE n.status = '1' AND p.link != '' ORDER BY p.link");
while ($page = db_fetch_object($result)) {
$links[] = "<a href=\"node.php?id=$page->nid\">$page->link</a>";
}