From a58de1f02ea9a8a8e84c43d08236155cb6694006 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 27 Dec 2018 18:57:11 +0100 Subject: [PATCH] better checks for definition --- inc/core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/core.php b/inc/core.php index ac5d287..8ffaac3 100644 --- a/inc/core.php +++ b/inc/core.php @@ -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;