Browse Source

using p(age)

Jeroen De Meerleer 8 months ago
parent
commit
dfc59008f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/JeroenED/PortfolioBundle/Controller/ApiController.php

+ 1 - 1
src/JeroenED/PortfolioBundle/Controller/ApiController.php

@@ -23,7 +23,7 @@ class ApiController extends Controller {
         $loggedin = null !== $user ? true : false;
 
         $whereclause = "p.slug LIKE :slug";
-        $whereclause .= (!$loggedin) ? " AND online = true": "";
+        $whereclause .= (!$loggedin) ? " AND p.online = 1": "";
         $page = $this->getDoctrine()->getRepository(Page::class)
             ->createQueryBuilder('p')
             ->where($whereclause)