aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/acm/acm_file.php2
-rw-r--r--phpBB/includes/functions_admin.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/acm/acm_file.php b/phpBB/includes/acm/acm_file.php
index 883878b4b4..dfe31e6cc2 100644
--- a/phpBB/includes/acm/acm_file.php
+++ b/phpBB/includes/acm/acm_file.php
@@ -129,7 +129,7 @@ class acm
$this->load();
}
- if ($expire_time > 0)
+ if ($expire_time > 0 && isset($this->vars_ts[$varname]))
{
if ($this->vars_ts[$varname] <= time() - $expire_time)
{
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index fcc91b814a..01bbd60836 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -1689,7 +1689,7 @@ function event_execute($mode)
}
// Extension of auth class for changing permissions
-if (class_exists(auth))
+if (class_exists('auth'))
{
class auth_admin extends auth
{
@@ -1957,7 +1957,7 @@ if (class_exists(auth))
}
}
-if (class_exists(template))
+if (class_exists('template'))
{
class template_admin extends template
{