]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Controller/EntryController.php
Fix sort
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Controller / EntryController.php
index b3ec7729e673f87a5d2435558842797933905c37..5157653c6480f05cbb106e34547eb5c350e678cd 100644 (file)
@@ -535,7 +535,7 @@ class EntryController extends Controller
         // defined as null by default because each repository method have the right field as default value too
         // like `getBuilderForStarredByUser` will have `starredAt` sort by default
         $sortBy = null;
-        if (in_array($request->get('sort', 'createdAt'), ['id', 'title', 'createdAt', 'updatedAt', 'starredAt', 'archivedAt'], true)) {
+        if (\in_array($request->get('sort', 'createdAt'), ['id', 'title', 'createdAt', 'updatedAt', 'starredAt', 'archivedAt'], true)) {
             $sortBy = $request->get('sort', null);
         }