aboutsummaryrefslogtreecommitdiffstats
path: root/core/include/post/list.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/include/post/list.php')
-rw-r--r--core/include/post/list.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/include/post/list.php b/core/include/post/list.php
index c696419..8dfd183 100644
--- a/core/include/post/list.php
+++ b/core/include/post/list.php
@@ -22,14 +22,14 @@ $lastSite = ceil($count / $site_size);
$currentSite = HTTP::GET('site') ?? 1;
$currentSite = intval($currentSite);
-if($currentSite < 1 OR ($currentSite > $lastSite AND $lastSite > 0)) {
+if($currentSite < 1 or ($currentSite > $lastSite and $lastSite > 0)) {
Application::error404();
}
#===============================================================================
# Single redirect
#===============================================================================
-if(Application::get('POST.REDIRECT_SINGLE') === TRUE AND $count === 1) {
+if(Application::get('POST.REDIRECT_SINGLE') === true and $count === 1) {
$Post = $PostRepository->getLast();
HTTP::redirect(Application::getEntityURL($Post));
}