diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-09-23 19:25:51 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-09-23 19:25:51 +0000 |
commit | d264b4fc2bdd430e0b65ee55506f0f64b075edc4 (patch) | |
tree | 8c1156fbf9e1df411d9c28d58fc379566721a28b /modules/poll.module | |
parent | ef3de8e1ece263138baa5844212650f4980bb8c5 (diff) | |
download | brdo-d264b4fc2bdd430e0b65ee55506f0f64b075edc4.tar.gz brdo-d264b4fc2bdd430e0b65ee55506f0f64b075edc4.tar.bz2 |
- fixed bug in poll.module (patch by alex)
Diffstat (limited to 'modules/poll.module')
-rw-r--r-- | modules/poll.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/poll.module b/modules/poll.module index b2589941c..579a43314 100644 --- a/modules/poll.module +++ b/modules/poll.module @@ -227,7 +227,7 @@ function poll_save($edit) { global $status, $user; if (!$edit[nid]) { - $nid = node_save($edit, array(active => 1, attributes => node_attributes_save("poll", $edit), author => $user->id, comment => variable_get("poll_comment", 0), moderate => variable_get("poll_moderate", ""), promote => variable_get("poll_promote", 0), runtime, score => 0, status => variable_get("poll_status", $status[queued]), timestamp => time(), title, type => "poll", votes => 0, voters => "")); + $nid = node_save($edit, array(active => 1, attributes => node_attributes_save("poll", $edit), author => $user->uid, comment => variable_get("poll_comment", 0), moderate => variable_get("poll_moderate", ""), promote => variable_get("poll_promote", 0), runtime, score => 0, status => variable_get("poll_status", $status[queued]), timestamp => time(), title, type => "poll", votes => 0, voters => "")); } else if (user_access("administer nodes")) { $nid = node_save($edit, array(active, attributes => node_attributes_save("poll", $edit), runtime, title, type => "poll")); |