1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Prevent some PHP errors

This commit is contained in:
nlstart
2012-01-11 10:37:12 +00:00
parent 59f2feb30c
commit 7fdd92eb5c
2 changed files with 3 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ class ecache {
// It's a page - need the query in the hash
if (!$this->CachePageMD5)
{
$this->CachePageMD5 = md5(e_BASE.e_LANGUAGE.THEME.USERCLASS_LIST.e_QUERY.filemtime(THEME.'theme.php'));
$this->CachePageMD5 = md5(e_BASE.e_LANGUAGE.THEME.USERCLASS_LIST.defset('e_QUERY').filemtime(THEME.'theme.php'));
}
$CheckTag = '_'.$this->CachePageMD5;
}

View File

@@ -196,12 +196,12 @@ class redirection
public function checkMaintenance()
{
// prevent looping.
if(strpos(e_SELF, 'admin.php') !== FALSE || strpos(e_SELF, 'sitedown.php') !== FALSE)
if(strpos(defset('e_SELF'), 'admin.php') !== FALSE || strpos(defset('e_SELF'), 'sitedown.php') !== FALSE)
{
return;
}
if(e107::getPref('maintainance_flag') && e_PAGE != 'secure_img_render.php')
if(e107::getPref('maintainance_flag') && defset('e_PAGE') != 'secure_img_render.php')
{
// if not admin
if(!ADMIN