Commit 0c89ef12 authored by Dries's avatar Dries
Browse files

- Fixed bug in "delete node".
parent e58207f2
......@@ -91,7 +91,7 @@ function node_admin_edit($id) {
}
function node_delete($id) {
return (node_del("nid", $id) ? "node has been deleted." : "failed to delete node: node must be dumped first.");
return (node_del(array("nid" => $id)) ? "node has been deleted." : "failed to delete node: node must be dumped first.");
}
function node_query($type = "") {
......
......@@ -91,7 +91,7 @@ function node_admin_edit($id) {
}
function node_delete($id) {
return (node_del("nid", $id) ? "node has been deleted." : "failed to delete node: node must be dumped first.");
return (node_del(array("nid" => $id)) ? "node has been deleted." : "failed to delete node: node must be dumped first.");
}
function node_query($type = "") {
......
Supports Markdown
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