summaryrefslogtreecommitdiff
path: root/node.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-09-28 15:23:07 +0000
committerDries Buytaert <dries@buytaert.net>2001-09-28 15:23:07 +0000
commit17c921259f61daac6cc0d10ea145d6882ea89514 (patch)
tree09e5b946476ef2a77e677c772ba84a36da634b76 /node.php
parent0cb7dbc25ff04d0e35ba6513384afb77bf4148f9 (diff)
downloadbrdo-17c921259f61daac6cc0d10ea145d6882ea89514.tar.gz
brdo-17c921259f61daac6cc0d10ea145d6882ea89514.tar.bz2
- fixed typo:
"call to undefined function: db_num_row()"
Diffstat (limited to 'node.php')
-rw-r--r--node.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.php b/node.php
index 2e0c9dc89..5c555416e 100644
--- a/node.php
+++ b/node.php
@@ -86,7 +86,7 @@ function node_history($node) {
return $output;
}
-$number = ($title ? db_num_row(db_query("SELECT nid FROM node WHERE title = '$title' AND status = $status[posted]")) : 1);
+$number = ($title ? db_num_rows(db_query("SELECT nid FROM node WHERE title = '$title' AND status = $status[posted]")) : 1);
if ($number > 1) {
$result = db_query("SELECT n.*, u.name, u.uid FROM node n LEFT JOIN user u ON n.author = u.uid WHERE n.title = '$title' AND n.status = $status[posted] ORDER BY timestamp DESC");