diff --git a/uVote/api/votes/votes.php b/uVote/api/votes/votes.php index 95706c9..5f524c3 100644 --- a/uVote/api/votes/votes.php +++ b/uVote/api/votes/votes.php @@ -196,7 +196,7 @@ class votes { public static function write_commentrate($c_ID, $val){ if(!\SYSTEM\SECURITY\Security::isLoggedIn()){ throw new ERROR("You need to be logged in.");} - return \DBD\UVOTE_DATA_USER_COMMENTRATE_INSERT::Q1(array($c_ID, \SYSTEM\SECURITY\Security::getUser()->id, $val));} + return \DBD\UVOTE_DATA_USER_COMMENTRATE_INSERT::Q1(array($c_ID, \SYSTEM\SECURITY\Security::getUser()->id, $val, $c_ID, \SYSTEM\SECURITY\Security::getUser()->id, $val));} public static function get_add_data(){ return \DBD\UVOTE_DATA_USER_ADD_DATA::Q1(array(\SYSTEM\SECURITY\Security::getUser()->id)); diff --git a/uVote/dbd/qq/UVOTE_DATA_USER_COMMENTRATE_INSERT.php b/uVote/dbd/qq/UVOTE_DATA_USER_COMMENTRATE_INSERT.php index 743bea7..e31e1f6 100644 --- a/uVote/dbd/qq/UVOTE_DATA_USER_COMMENTRATE_INSERT.php +++ b/uVote/dbd/qq/UVOTE_DATA_USER_COMMENTRATE_INSERT.php @@ -7,6 +7,5 @@ class UVOTE_DATA_USER_COMMENTRATE_INSERT extends \SYSTEM\DB\QP { //pg '', //mys -'INSERT INTO `uvote_user_comments_additional` (`c_ID`, `user_ID`, `val`, `timestamp`) - VALUES (?, ?, ?, NOW());' +'INSERT INTO `uvote_user_comments_additional` (`c_ID`, `user_ID`, `val`, `timestamp`) VALUES (?, ?, ?, NOW()) ON DUPLICATE KEY UPDATE `c_ID` = ?, `user_ID` = ?, `val` = ?, `timestamp` = NOW();' );}} \ No newline at end of file diff --git a/uVote/page/default_bulletin/bars_user.tpl b/uVote/page/default_bulletin/bars_user.tpl index 38ded74..77d82cd 100644 --- a/uVote/page/default_bulletin/bars_user.tpl +++ b/uVote/page/default_bulletin/bars_user.tpl @@ -4,3 +4,4 @@ ${urvote_bars_user}
+ diff --git a/uVote/page/default_bulletin/bulletin.tpl b/uVote/page/default_bulletin/bulletin.tpl index a27dcec..8b30687 100644 --- a/uVote/page/default_bulletin/bulletin.tpl +++ b/uVote/page/default_bulletin/bulletin.tpl @@ -12,27 +12,24 @@