Commit b903a190 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Fix PHP warning(s).

parent c0202455
......@@ -15,8 +15,15 @@ $optargs = OptionalPageArguments("simple", PAGEARG_BOOLEAN,
"reset", PAGEARG_STRING);
# Display a simpler version of this page.
if (!isset($simple)) {
if (isset($simple) && $simple) {
$simple = 1;
$view = array('hide_banner' => 1,
'hide_copyright' => 1,
'hide_sidebar' => 1);
}
else {
$simple = 0;
$view = $array();
}
# Half the key in the URL.
......@@ -48,16 +55,6 @@ if (!isset($_SERVER["SSL_PROTOCOL"])) {
USERERROR("Must use https:// to access this page!", 1);
}
#
# Turn off some of the decorations and menus for the simple view
#
if ($simple) {
$view = array('hide_banner' => 1, 'hide_copyright' => 1,
'hide_sidebar' => 1);
} else {
$view = array();
}
#
# Must not be logged in.
#
......
......@@ -705,7 +705,7 @@ function NODETYPE_ALLOWED($type) {
if (! GETUID())
return 0;
if ($CHECKLOGIN_NODETYPES[$type]) {
if (isset($CHECKLOGIN_NODETYPES[$type])) {
return 1;
} else {
return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment