diff --git a/src/Controller/MainController.php b/src/Controller/MainController.php index afa7757..aa52061 100644 --- a/src/Controller/MainController.php +++ b/src/Controller/MainController.php @@ -292,7 +292,7 @@ class MainController extends AppController { $page = intval($this->request->query('page')); $conn = ConnectionManager::get('default'); - $stmt = $conn->execute('SELECT COUNT(id) AS Total FROM Blocks'); + $stmt = $conn->execute('SELECT COUNT(id) AS Total FROM block'); $count = $stmt->fetch(\PDO::FETCH_OBJ); $numBlocks = $count->Total; diff --git a/src/Template/Main/blocks.ctp b/src/Template/Main/blocks.ctp index 17ff11c..442b897 100644 --- a/src/Template/Main/blocks.ctp +++ b/src/Template/Main/blocks.ctp @@ -181,10 +181,10 @@