Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make vote field signed, duh

  • Loading branch information...
commit 3664c0c31bcd7f27fb4e62d9bee583a50046031d 1 parent 17e1256
@matzko authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 includes/core.php
View
4 includes/core.php
@@ -67,7 +67,7 @@ protected function _get_create_table_query()
blog_id BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
object_id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
user_id BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
- vote TINYINT UNSIGNED NOT NULL DEFAULT 0,
+ vote TINYINT SIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (vote_id),
KEY blog_id (blog_id),
KEY object_id (object_id),
@@ -258,7 +258,7 @@ protected function _update_vote( $blog_id = 0, $object_id = 0, $user_id = 0, $vo
return $wpdb->query(
"UPDATE {$table}
- SET vote_id = {$vote_id}
+ SET vote = {$vote}
WHERE
blog_id = {$blog_id} AND
object_id = {$object_id} AND
Please sign in to comment.
Something went wrong with that request. Please try again.