Use strict check where appriopriate

This commit is contained in:
slawkens 2018-10-16 01:40:49 +02:00
parent 98a05f53d2
commit ff8105f809
3 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
<?php
if(PAGE != 'news') {
if(PAGE !== 'news') {
return;
}

View File

@ -1,6 +1,6 @@
<?php
if(PAGE != 'news') {
if(PAGE !== 'news') {
return;
}

View File

@ -18,20 +18,20 @@ if(isset($config['boxes']))
<script type="text/javascript">
var loginStatus="<?php echo ($logged ? 'true' : 'false'); ?>";
<?php
if(PAGE != 'news') {
if(PAGE !== 'news') {
if(strpos(URI, 'subtopic=') !== false) {
$tmp = $_REQUEST['subtopic'];
if($tmp == 'accountmanagement') {
if($tmp === 'accountmanagement') {
$tmp = 'accountmanage';
}
}
else {
$tmp = str_replace('/', '', URI);
$exp = explode('/', URI);
if(isset($exp[1]) && URI != 'account/create' && URI != 'account/lost') {
if ($exp[0] == 'account') {
if(URI !== 'account/create' && URI !== 'account/lost' && isset($exp[1])) {
if ($exp[0] === 'account') {
$tmp = 'accountmanage';
} else if ($exp[0] == 'news' && $exp[1] == 'archive') {
} else if ($exp[0] === 'news' && $exp[1] === 'archive') {
$tmp = 'newsarchive';
}
else