aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/messages/exceptions/exception.php2
-rw-r--r--views/failsafe/messages/exceptions/exception.php2
-rw-r--r--views/opendd/messages/exceptions/exception.php2
-rw-r--r--views/xml/messages/exceptions/exception.php2
4 files changed, 4 insertions, 4 deletions
diff --git a/views/default/messages/exceptions/exception.php b/views/default/messages/exceptions/exception.php
index c93883cbc..65ec7cdbf 100644
--- a/views/default/messages/exceptions/exception.php
+++ b/views/default/messages/exceptions/exception.php
@@ -24,7 +24,7 @@ $body = <<< END
</p>
END;
-if ($CONFIG->debug) {
+if (isset($CONFIG->debug)) {
$details = elgg_view('output/longtext', array('value' => htmlentities(print_r($vars['object'], true), ENT_QUOTES, 'UTF-8')));
$body .= <<< END
<hr />
diff --git a/views/failsafe/messages/exceptions/exception.php b/views/failsafe/messages/exceptions/exception.php
index f6fb4d144..d3877f0c8 100644
--- a/views/failsafe/messages/exceptions/exception.php
+++ b/views/failsafe/messages/exceptions/exception.php
@@ -24,7 +24,7 @@ global $CONFIG;
</span>
</p>
-<?php if ($CONFIG->debug) { ?>
+<?php if (isset($CONFIG->debug)) { ?>
<p class="messages-exception-detail" style="background:#FDFFC3;display:block;padding:10px;">
<?php
diff --git a/views/opendd/messages/exceptions/exception.php b/views/opendd/messages/exceptions/exception.php
index c020c0e04..0c932f4e5 100644
--- a/views/opendd/messages/exceptions/exception.php
+++ b/views/opendd/messages/exceptions/exception.php
@@ -15,7 +15,7 @@ global $CONFIG;
?>
<!--
<?php echo get_class($vars['object']); ?>: <?php echo autop($vars['object']->getMessage()); ?>
-<?php if ($CONFIG->debug) { ?>
+<?php if (isset($CONFIG->debug)) { ?>
<?php
echo print_r($vars['object'], true);
?>
diff --git a/views/xml/messages/exceptions/exception.php b/views/xml/messages/exceptions/exception.php
index f13457e7c..cc899ac18 100644
--- a/views/xml/messages/exceptions/exception.php
+++ b/views/xml/messages/exceptions/exception.php
@@ -17,7 +17,7 @@ global $CONFIG;
<?php echo get_class($vars['object']); ?>: <?php echo autop($vars['object']->getMessage()); ?>
-<?php if ($CONFIG->debug) { ?>
+<?php if (isset($CONFIG->debug)) { ?>
<?php
echo print_r($vars['object'], true);