summaryrefslogtreecommitdiff
path: root/modules/node.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node.module')
-rw-r--r--modules/node.module8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/node.module b/modules/node.module
index a31666aa7..0dba95832 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -631,7 +631,7 @@ function node_admin_nodes() {
);
$operations = array(
- array(t("Approve the selected posts"), "UPDATE {node} SET status = 1, moderate = 1 WHERE nid = %d"),
+ array(t("Approve the selected posts"), "UPDATE {node} SET status = 1, moderate = 0 WHERE nid = %d"),
array(t("Promote the selected posts"), "UPDATE {node} SET status = 1, promote = 1 WHERE nid = %d"),
array(t("Make the selected posts static"), "UPDATE {node} SET status = 1, static = 1 WHERE nid = %d"),
array(t("Demote the selected posts"), "UPDATE {node} SET promote = 0 WHERE nid = %d"),
@@ -646,15 +646,15 @@ function node_admin_nodes() {
$_SESSION["node-overview-filter"] = 0;
}
- if ($_POST["edit"]["filter"]) {
+ if (isset($_POST["edit"]["filter"])) {
$_SESSION["node-overview-filter"] = $_POST["edit"]["filter"];
}
- if ($_POST["edit"]["operation"]) {
+ if (isset($_POST["edit"]["operation"])) {
$operation = $operations[$_POST["edit"]["operation"]][1];
foreach ($_POST["edit"]["status"] as $nid => $value) {
if ($value) {
- db_query($operation, $nid);
+ db_queryd($operation, $nid);
}
}