mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-06-14 19:19:18 +00:00
commit
This commit is contained in:
@ -70,7 +70,7 @@ class Author {
|
||||
|
||||
public static function list($recent = true, $limit = 100) {
|
||||
$sort = $recent ? "DESC" : "ASC";
|
||||
$query = "SELECT * FROM author ORDER BY " . $sort . " LIMIT " . $limit;
|
||||
$query = "SELECT * FROM users ORDER BY id " . $sort . " LIMIT " . $limit;
|
||||
|
||||
$pdo = Functions::connect();
|
||||
$cats = $pdo->query($query)->fetchAll();
|
||||
|
Reference in New Issue
Block a user