Browse Source

Fixed sql error.

pull/24/head
Teknikode 4 years ago
parent
commit
00d3ede990
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      transparency/main.php

+ 2
- 2
transparency/main.php View File

@@ -110,7 +110,7 @@
array_push($upload_list, $upload);
}
$pastes = $db->select('paste', "1=? LIMIT 1 ORDER BY `id` DESC", array("1"));
$pastes = $db->select('paste', "1=? ORDER BY id DESC LIMIT 1", array("1"));
$paste_list = array();
foreach ($pastes as $paste)
@@ -161,7 +161,7 @@
</div>
<div class="col-sm-6">
<h3>Pastes</h3>
<p>Number of Pastes: <?php echo $paste_list['id']; ?></p>
<p>Number of Pastes: <?php echo $paste_list[0]['id']; ?></p>
</div>
</div>
<div class="row">

Loading…
Cancel
Save