better checks for definition

This commit is contained in:
Chris
2018-12-27 18:57:11 +01:00
parent 7170825166
commit a58de1f02e

View File

@@ -22,7 +22,7 @@ function architect($url)
//if there is no info in the URL, don't even bother checking with the controllers
//just show the site
if( (!defined('UPLOAD_FORM_LOCATION') && count($u)==0) || (defined('UPLOAD_FORM_LOCATION') && UPLOAD_FORM_LOCATION && '/'.implode('/',$u)==UPLOAD_FORM_LOCATION) )
if( ( (!defined('UPLOAD_FORM_LOCATION') || (defined('UPLOAD_FORM_LOCATION') && !UPLOAD_FORM_LOCATION)) && count($u)==0) || (defined('UPLOAD_FORM_LOCATION') && UPLOAD_FORM_LOCATION && '/'.implode('/',$u)==UPLOAD_FORM_LOCATION) )
{
renderTemplate('main');
return;