public function showUnreadAction(Request $request, $page)
{
// load the quickstart if no entry in database
- if ($page === 1 && $this->get('wallabag_core.entry_repository')->countAllEntriesByUser($this->getUser()->getId()) === 0) {
+ if ((int) $page === 1 && $this->get('wallabag_core.entry_repository')->countAllEntriesByUser($this->getUser()->getId()) === 0) {
return $this->redirect($this->generateUrl('quickstart'));
}
$this->checkUserAction($entry);
$entry->toggleStar();
+ $entry->updateStar($entry->isStarred());
$this->getDoctrine()->getManager()->flush();
$message = 'flashes.entry.notice.entry_unstarred';
'entries' => $entries,
'currentPage' => $page,
'searchTerm' => $searchTerm,
+ 'isFiltered' => $form->isSubmitted(),
]
);
}