@@ -12,7 +12,9 @@ discard block |
||
| 12 | 12 | $stmt->bind_param("i", $_GET['id']); |
| 13 | 13 | $stmt->execute(); |
| 14 | 14 | $result = $stmt->get_result(); |
| 15 | - if($result->num_rows === 0) echo('There are no users.'); |
|
| 15 | + if($result->num_rows === 0) { |
|
| 16 | + echo('There are no users.'); |
|
| 17 | + } |
|
| 16 | 18 | while($row = $result->fetch_assoc()) { |
| 17 | 19 | $author = $row['author']; |
| 18 | 20 | $id = $row['id']; |
@@ -215,12 +217,13 @@ discard block |
||
| 215 | 217 | <form method="post" enctype="multipart/form-data" id="submitform"> |
| 216 | 218 | <textarea required cols="77" placeholder="Comment" name="comment"></textarea><br> |
| 217 | 219 | <input type="submit" value="Post" <?php |
| 218 | - if ($config['use_recaptcha']) |
|
| 219 | - echo 'class="g-recaptcha" data-sitekey="' . $config['recaptcha_sitekey'] . '" data-callback="onSubmit"' |
|
| 220 | + if ($config['use_recaptcha']) { |
|
| 221 | + echo 'class="g-recaptcha" data-sitekey="' . $config['recaptcha_sitekey'] . '" data-callback="onSubmit"' |
|
| 220 | 222 | ?>> <small>max limit: 500 characters | supports <a href="https://www.markdownguide.org/basic-syntax">Markdown</a></small> |
| 221 | 223 | </form> |
| 222 | 224 | <?php |
| 223 | 225 | $stmt = $conn->prepare("SELECT * FROM `gamecomments` WHERE toid = ? ORDER BY id DESC"); |
| 226 | + } |
|
| 224 | 227 | $stmt->bind_param("s", $_GET['id']); |
| 225 | 228 | $stmt->execute(); |
| 226 | 229 | $result = $stmt->get_result(); |