diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-03-07 21:53:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-07 21:53:53 +0100 |
commit | 39ee93925b66b527c4386647001fadc898c52a2c (patch) | |
tree | b8e0548c6ba1716b6c3f2bde9f81e8f4d913eeb2 /index.php | |
parent | a58a8856a88cefe22027d419fac2e5664fc9ba61 (diff) | |
parent | d2d4f993e1e76bc68b65c48cb18476c404c97a41 (diff) | |
download | Shaarli-39ee93925b66b527c4386647001fadc898c52a2c.tar.gz Shaarli-39ee93925b66b527c4386647001fadc898c52a2c.tar.zst Shaarli-39ee93925b66b527c4386647001fadc898c52a2c.zip |
Merge pull request #1097 from ArthurHoaro/fix/psr-elseif
PSR: use elseif instead of else if
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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'; |