Commit 02797613 authored by Kjartan's avatar Kjartan
Browse files

- changed a db_queryd to db_query.

parent e1288998
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment