summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKjartan Mannes2002-06-02 15:29:21 (GMT)
committer Kjartan Mannes2002-06-02 15:29:21 (GMT)
commit0279761383f3d31421bd759bf9e17ab8f31a6a87 (patch)
tree93adbe0182926bf259d8ac6c4549709910211ed1
parente128899832fecdb32a87d2cf760fbddf117e01d3 (diff)
- changed a db_queryd to db_query.
-rw-r--r--node.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.php b/node.php
index 36403fd..d00da60 100644
--- a/node.php
+++ b/node.php
@@ -35,7 +35,7 @@ function node_failure() {
$theme->footer();
}
-$number = ($title ? db_num_rows(db_queryd("SELECT nid FROM node WHERE title = '%s' AND status = 1", $title)) : 1);
+$number = ($title ? db_num_rows(db_query("SELECT nid FROM node WHERE title = '%s' AND status = 1", $title)) : 1);
if ($number > 1) {
$result = db_query("SELECT n.*, u.name, u.uid FROM node n LEFT JOIN users u ON n.uid = u.uid WHERE n.title = '%s' AND n.status = 1 ORDER BY created DESC", $title);