From 40d406f757e4e1585f8323de35c90d664259e744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Wed, 14 Nov 2007 15:24:16 +0000 Subject: Fix bogus linebreak --- modules/system/system.install | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/system') 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 -- cgit v1.2.3