This commit is contained in:
Niko Storni 2022-06-17 20:00:48 +02:00
parent e8c58e8c15
commit a252dc05e6

View file

@ -327,7 +327,7 @@ class MainController extends AppController {
$page = intval($this->request->query('page')); $page = intval($this->request->query('page'));
$conn = ConnectionManager::get('default'); $conn = ConnectionManager::get('default');
$stmt = $conn->execute('SELECT height AS Total FROM block oder by id desc limit 1'); $stmt = $conn->execute('SELECT height AS Total FROM block order by id desc limit 1');
$count = $stmt->fetch(\PDO::FETCH_OBJ); $count = $stmt->fetch(\PDO::FETCH_OBJ);
$numBlocks = $count->Total; $numBlocks = $count->Total;