summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornatrak <>2001-10-20 11:42:09 +0000
committernatrak <>2001-10-20 11:42:09 +0000
commit8d4650c4e222ef70d75dfa3c530e04ab6bad8630 (patch)
tree79b1852265cecb66977767f0f8396b0bfbf71846
parenta98d1d7cabc6df02faf757f8d8558e05dbad4256 (diff)
downloadbrdo-8d4650c4e222ef70d75dfa3c530e04ab6bad8630.tar.gz
brdo-8d4650c4e222ef70d75dfa3c530e04ab6bad8630.tar.bz2
- fixed a problem with node retrival if several nodes had the same title but only
one was posted and the rest expired/dumped/queued.
-rw-r--r--node.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/node.php b/node.php
index f80b25373..741183b39 100644
--- a/node.php
+++ b/node.php
@@ -101,12 +101,12 @@ if ($number > 1) {
$theme->footer();
}
elseif ($number) {
- $node = ($title ? node_get_object(array("title" => $title)) : node_get_object(array("nid" => ($edit[id] ? $edit[id] : $id))));
+ $node = ($title ? node_get_object(array("title" => $title, "status" => node_status("posted"))) : node_get_object(array("nid" => ($edit[id] ? $edit[id] : $id))));
if ($node && node_access($node)) {
switch ($op) {
case "history":
$theme->header();
- $theme->box(t("History"), node_control($node) ."<DL>". node_history($node) ."</DL>");
+ $theme->box(t("History"), node_control($node) ."<dl>". node_history($node) ."</dl>");
$theme->footer();
break;
default: