Skip to content
Snippets Groups Projects
Commit b6ea2ed4 authored by echicken's avatar echicken
Browse files

Bleh.

parent fc56469f
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
for(var w = 0; w < webctrl.length; w++) { for(var w = 0; w < webctrl.length; w++) {
if(webctrl[w].name != fileName) if(webctrl[w].name != fileName)
continue; continue;
if(webctrl[w].hasOwnProperty('AccessRequirements') && !user.compare_ars(webctrl[w].AccessRequirements)) if(typeof webctrl[w].AccessRequirements != "undefined" && !user.compare_ars(webctrl[w].AccessRequirements))
return false; return false;
} }
return true; return true;
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<div id="content"> <div id="content">
<div id="subContent" class="border box background"> <div id="subContent" class="border box background">
<?xjs <?xjs
if(http_request.query.hasOwnProperty("page")) if(typeof http_request.query.page != "undefined")
var page = file_getname(http_request.query.page); var page = file_getname(http_request.query.page);
else else
var page = "000-home.xjs"; var page = "000-home.xjs";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment