diff options
-rw-r--r-- | modules/system/system.install | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index c0bd24b47..2529c8123 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -2346,8 +2346,7 @@ function system_update_164() { foreach (explode(' ', $poll->polled) as $polled) { if ($polled[0] == '_') { // $polled is a user id - db_query('INSERT INTO {poll_votes} (nid, uid) VALUES (%d, %d)', $poll->nid, substr($polled, -1, -1)); + db_query('INSERT INTO {poll_votes} (nid, uid) VALUES (%d, %d)', $poll->nid, substr($polled, 1, -1)); } else { // $polled is a host |