Completed
Push — master ( be2f09...62cb27 )
by mains
03:13
created
vote-ajax.php 1 patch
Upper-Lower-Casing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,13 +24,13 @@  discard block
 block discarded – undo
24 24
 }
25 25
 else
26 26
 {
27
-	$userIsVoter = false;
27
+	$userIsVoter = FALSE;
28 28
 }
29 29
 
30 30
 if(!$userIsVoter && !$userIsAdmin)
31 31
 {
32 32
 	error_log($_SERVER['REMOTE_ADDR']  . ' used a wrong password on vote-ajax.php');
33
-	$response = array("message" => $_SERVER['REMOTE_ADDR']  . ' used a wrong password on vote-ajax.php',"success" => false);
33
+	$response = array("message" => $_SERVER['REMOTE_ADDR']  . ' used a wrong password on vote-ajax.php',"success" => FALSE);
34 34
 	echo json_encode($response);
35 35
 	die();
36 36
 }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 		if($remaining_votes <= 0)
48 48
 		{
49 49
 			$message = 'This voter account run out of votes. For more information please contact [email protected]';
50
-			$success = false;
50
+			$success = FALSE;
51 51
 
52 52
 			$response = array("success" => $success, "message" => $message);
53 53
 			echo json_encode($response);
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 		
58 58
 
59 59
 	$message = "";
60
-	$success = true;
60
+	$success = TRUE;
61 61
 	$token = "";
62 62
 		if(isset($_POST['vote']) && isset($_POST['postId']))
63 63
 		{
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 					$_GET['key'] = $captcha["key"];
81 81
 					$_GET['deviceUid'] = $deviceUid;
82 82
 
83
-					$success = false;
83
+					$success = FALSE;
84 84
 				}
85 85
 				else
86 86
 				{
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 						$result = $db->query("UPDATE users 
91 91
 	                                SET remaining_votes='" . $remaining_votes . "'
92 92
 	                                WHERE user_token='" . $_COOKIE['JodelVoterPassword'] . "'");
93
-						if($result === false)
93
+						if($result === FALSE)
94 94
 						{
95 95
 	               			error_log("Update remaining votes failed: (" . $db->errno . ") " . $db->error);
96 96
 	               		}
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 			else
104 104
 			{
105 105
 				$message = 'There is no account available for this jodel. Please create at least one new account to vote this jodel.';
106
-				$success = false;
106
+				$success = FALSE;
107 107
 			}
108 108
 		}
109 109
 
Please login to merge, or discard this patch.