summaryrefslogtreecommitdiff
path: root/htdocs
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs')
-rw-r--r--htdocs/moderate/pages/delete.php2
-rw-r--r--htdocs/moderate/pages/editor.php2
-rw-r--r--htdocs/moderate/pages/index.php2
-rw-r--r--htdocs/moderate/users/delete.php2
-rw-r--r--htdocs/moderate/users/editor.php2
-rw-r--r--htdocs/moderate/users/index.php2
6 files changed, 6 insertions, 6 deletions
diff --git a/htdocs/moderate/pages/delete.php b/htdocs/moderate/pages/delete.php
index 91ee209..beacd45 100644
--- a/htdocs/moderate/pages/delete.php
+++ b/htdocs/moderate/pages/delete.php
@@ -11,7 +11,7 @@
require_once('../../src/base.inc.php');
// Verify User is admin
-if (!$_SESSION['currentUser']->isAdmin()) {
+if (!isset($_SESSION['currentUser']) or !$_SESSION['currentUser']->isAdmin()) {
header('Location: ' . buildUrl('moderate/'));
exit;
}
diff --git a/htdocs/moderate/pages/editor.php b/htdocs/moderate/pages/editor.php
index e2f9d25..49e67d9 100644
--- a/htdocs/moderate/pages/editor.php
+++ b/htdocs/moderate/pages/editor.php
@@ -11,7 +11,7 @@
require_once('../../src/base.inc.php');
// Verify User is admin
-if (!$_SESSION['currentUser']->isAdmin()) {
+if (!isset($_SESSION['currentUser']) or !$_SESSION['currentUser']->isAdmin()) {
header('Location: ' . buildUrl('moderate/'));
exit;
}
diff --git a/htdocs/moderate/pages/index.php b/htdocs/moderate/pages/index.php
index d6ffd87..ab00552 100644
--- a/htdocs/moderate/pages/index.php
+++ b/htdocs/moderate/pages/index.php
@@ -11,7 +11,7 @@
require_once('../../src/base.inc.php');
// Verify User is admin
-if (!$_SESSION['currentUser']->isAdmin()) {
+if (!isset($_SESSION['currentUser']) or !$_SESSION['currentUser']->isAdmin()) {
header('Location: ' . buildUrl('moderate/'));
exit;
}
diff --git a/htdocs/moderate/users/delete.php b/htdocs/moderate/users/delete.php
index 875c0c7..76b8866 100644
--- a/htdocs/moderate/users/delete.php
+++ b/htdocs/moderate/users/delete.php
@@ -11,7 +11,7 @@
require_once('../../src/base.inc.php');
// Verify User is admin
-if (!$_SESSION['currentUser']->isAdmin()) {
+if (!isset($_SESSION['currentUser']) or !$_SESSION['currentUser']->isAdmin()) {
header('Location: ' . buildUrl('moderate/'));
exit;
}
diff --git a/htdocs/moderate/users/editor.php b/htdocs/moderate/users/editor.php
index 54befc7..fe715f7 100644
--- a/htdocs/moderate/users/editor.php
+++ b/htdocs/moderate/users/editor.php
@@ -11,7 +11,7 @@
require_once('../../src/base.inc.php');
// Verify User is admin
-if (!$_SESSION['currentUser']->isAdmin()) {
+if (!isset($_SESSION['currentUser']) or !$_SESSION['currentUser']->isAdmin()) {
header('Location: ' . buildUrl('moderate/'));
exit;
}
diff --git a/htdocs/moderate/users/index.php b/htdocs/moderate/users/index.php
index c4aee54..3e85d5e 100644
--- a/htdocs/moderate/users/index.php
+++ b/htdocs/moderate/users/index.php
@@ -11,7 +11,7 @@
require_once('../../src/base.inc.php');
// Verify User is admin
-if (!$_SESSION['currentUser']->isAdmin()) {
+if (!isset($_SESSION['currentUser']) or !$_SESSION['currentUser']->isAdmin()) {
header('Location: ' . buildUrl('moderate/'));
exit;
}