From 17c921259f61daac6cc0d10ea145d6882ea89514 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Fri, 28 Sep 2001 15:23:07 +0000
Subject: [PATCH] - fixed typo:     "call to undefined function: db_num_row()"

---
 node.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/node.php b/node.php
index 2e0c9dc89e71..5c555416e304 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");
-- 
GitLab