fix button

This commit is contained in:
themohooks 2024-10-07 17:49:23 +03:00
parent 78ace421d5
commit 0bb61c96f1

View file

@ -27,7 +27,7 @@ class Rate
} }
if (Vote::comment(Auth::userid(), $_GET['wid']) === 1) { if (Vote::comment(Auth::userid(), $_GET['wid']) === 1) {
$pos = true; $pos = true;
$neg = true; $neg = false;
} else if (Vote::comment(Auth::userid(), $_GET['wid']) === 0) { } else if (Vote::comment(Auth::userid(), $_GET['wid']) === 0) {
$pos = false; $pos = false;
$neg = true; $neg = true;