Completed
Push — master ( 29c531...4a8418 )
by mains
03:07
created
admin.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,8 @@  discard block
 block discarded – undo
62 62
                     	. "','" . $db->escape_string($_POST['device_uid'])
63 63
                     	. "','" . $db->escape_string($_POST['rights']) . "')");
64 64
     
65
-    if($result === false){
65
+    if($result === false)
66
+    {
66 67
             $error = db_error();
67 68
             error_log($error);
68 69
             error_log("Adding Voter failed: (" . $result->errno . ") " . $result->error);
@@ -165,7 +166,9 @@  discard block
 block discarded – undo
165 166
 			<div class="row">
166 167
 				<article class="topContent col-12 col-sm-12">
167 168
 					<content id="posts" class="adminpanel">
168
-						<?php if($userIsAdmin) { ?>
169
+						<?php if($userIsAdmin)
170
+{
171
+?>
169 172
 							<div class="row">
170 173
 								<div class="col-md-12">
171 174
 									<h2>Account management</h2>
@@ -213,7 +216,8 @@  discard block
 block discarded – undo
213 216
 						<?php
214 217
 						}
215 218
 
216
-						if($userIsVoter) {
219
+						if($userIsVoter)
220
+						{
217 221
 						?>
218 222
 							<div class="row">								
219 223
 								<div class="col-12 col-sm-12">
@@ -239,7 +243,11 @@  discard block
 block discarded – undo
239 243
 										</div>
240 244
 										<div class="form-group">
241 245
 											<label for="postIdDelay">Post Id</label>
242
-											<input placeholder="postId" class="form-control" id="postIdDelay" value="<?php if(isset($_GET['postId'])) echo $_GET['postId'];?>" type="text" name="postId">
246
+											<input placeholder="postId" class="form-control" id="postIdDelay" value="<?php if(isset($_GET['postId']))
247
+{
248
+	echo $_GET['postId'];
249
+}
250
+?>" type="text" name="postId">
243 251
 										</div>
244 252
 										<div class="row">
245 253
 											<div class="col-6 col-xs-6"><button type="button" name="vote" value="up" class="half" onclick="voteWithAjax('up');">Upvote</button></div>
Please login to merge, or discard this patch.