X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=f7f87d95bcea5e296515413065d043719b5e5b9f;hb=4294bc7b98c8f45ceaac867cad3d5d35ee9eb096;hp=f7722433aaea8665e05e5c228c080b81aa7f1a81;hpb=4ff3ed1c47365d5b28f70cb2921b0ac0075612c3;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index f7722433..f7f87d95 100644 --- a/index.php +++ b/index.php @@ -887,7 +887,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager, if (empty($params['searchtags'])) { $params['searchtags'] = trim($_GET['addtag']); } - else if ($addtag) { + elseif ($addtag) { $params['searchtags'] = trim($params['searchtags']).' '.trim($_GET['addtag']); } @@ -953,7 +953,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager, } else { unset($_SESSION['visibility']); } - } else if ($_GET['visibility'] === 'public') { + } elseif ($_GET['visibility'] === 'public') { if (empty($_SESSION['visibility']) || $_SESSION['visibility'] !== 'public') { // See only public links $_SESSION['visibility'] = 'public';