summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-08-01 21:10:27 -0700
committerBharat Mediratta <bharat@menalto.com>2010-08-01 21:10:27 -0700
commit400c248e2d2c9acf022a247b80ed298ba0deab85 (patch)
tree38445c4e8bd8e3b135c5f4310fcb6577c49cb30e /modules/gallery/helpers/gallery.php
parent9b1e3eb1775f3af365d7320a8a0bbfed85e2311c (diff)
default maintenance_mode from false -> 0 for consistency with the value we set in the db
Diffstat (limited to 'modules/gallery/helpers/gallery.php')
-rw-r--r--modules/gallery/helpers/gallery.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery.php b/modules/gallery/helpers/gallery.php
index 33a6830c..82b8a790 100644
--- a/modules/gallery/helpers/gallery.php
+++ b/modules/gallery/helpers/gallery.php
@@ -26,7 +26,7 @@ class gallery_Core {
*/
static function maintenance_mode() {
if (Router::$controller != "login" &&
- module::get_var("gallery", "maintenance_mode", false) &&
+ module::get_var("gallery", "maintenance_mode", 0) &&
!identity::active_user()->admin) {
Router::$controller = "maintenance";
Router::$controller_path = MODPATH . "gallery/controllers/maintenance.php";