No need for if condition here

Removed if checks and else conditions in a couple of places
This commit is contained in:
Matt Pass
2012-09-19 08:42:11 +01:00
parent 924919fb6f
commit aa6cfcc76e

View File

@@ -52,7 +52,7 @@ for ($i=0;$i<count($themeArray);$i++) {
<br><br>
file manager root:<br>
<?php echo $_SESSION['loggedIn'] ? $ICEcoder['root'] : '[HIDDEN]';?>
<?php echo $ICEcoder['root'];?>
<br><br><br><br>
<div style="font-size: 10px; line-height: 12px">ICE coder by Matt Pass (<a href="http://www.twitter.com/mattpass" style="font-size: 10px" target="_blank">@mattpass</a>)<br><br>
@@ -202,7 +202,6 @@ var showHideTabs = function() {
}
var validatePasswords = function() {
<?php if($_SESSION['loggedIn']) { ?>
if (document.settings.accountPassword.value != 0 && document.settings.accountPassword.value.length<8) {
top.ICEcoder.message('Please use at least 8 chars in the password');
} else {
@@ -212,9 +211,6 @@ var validatePasswords = function() {
document.settings.submit();
}
}
<?php } else { ?>
top.ICEcoder.message('Sorry, you need to be logged in to change settings');
<?php ;}; ?>
}
</script>