aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2018-02-28 22:34:40 +0100
committerArthurHoaro <arthur@hoa.ro>2018-02-28 22:34:40 +0100
commitd2d4f993e1e76bc68b65c48cb18476c404c97a41 (patch)
tree833cf0646e7e7c195a8da9d5fee2812cd06f8a6d /index.php
parentb70436373b488ce9cd8b0dc287d058b5ca206347 (diff)
downloadShaarli-d2d4f993e1e76bc68b65c48cb18476c404c97a41.tar.gz
Shaarli-d2d4f993e1e76bc68b65c48cb18476c404c97a41.tar.zst
Shaarli-d2d4f993e1e76bc68b65c48cb18476c404c97a41.zip
PSR: use elseif instead of else if
See https://www.php-fig.org/psr/psr-2/\#51-if-elseif-else
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index bd34c0cd..3b8b52a7 100644
--- a/index.php
+++ b/index.php
@@ -887,7 +887,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager,
887 if (empty($params['searchtags'])) { 887 if (empty($params['searchtags'])) {
888 $params['searchtags'] = trim($_GET['addtag']); 888 $params['searchtags'] = trim($_GET['addtag']);
889 } 889 }
890 else if ($addtag) { 890 elseif ($addtag) {
891 $params['searchtags'] = trim($params['searchtags']).' '.trim($_GET['addtag']); 891 $params['searchtags'] = trim($params['searchtags']).' '.trim($_GET['addtag']);
892 } 892 }
893 893
@@ -953,7 +953,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager,
953 } else { 953 } else {
954 unset($_SESSION['visibility']); 954 unset($_SESSION['visibility']);
955 } 955 }
956 } else if ($_GET['visibility'] === 'public') { 956 } elseif ($_GET['visibility'] === 'public') {
957 if (empty($_SESSION['visibility']) || $_SESSION['visibility'] !== 'public') { 957 if (empty($_SESSION['visibility']) || $_SESSION['visibility'] !== 'public') {
958 // See only public links 958 // See only public links
959 $_SESSION['visibility'] = 'public'; 959 $_SESSION['visibility'] = 'public';