From 8de07ade79b6b7e748f0b1da05dbfcc02b4fe228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxemilian=20Gr=C3=B6nblom?= Date: Tue, 19 May 2015 19:05:52 +0300 Subject: [PATCH] fixed a thing --- like.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/like.php b/like.php index 8947060..7c08fcc 100644 --- a/like.php +++ b/like.php @@ -10,7 +10,7 @@ } else { $dislike = mysqli_real_escape_string($conn, $_GET["dislike"]); $has_liked = "SELECT userID FROM liked WHERE postID = '$dislike' AND userID = '$user'"; - $liek = $like; + $liek = $dislike; } $check = mysqli_query($conn, $has_liked);