aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/database.php2
-rw-r--r--engine/lib/elgglib.php2
-rw-r--r--engine/lib/metastrings.php4
-rw-r--r--mod/profile/actions/iconupload.php2
4 files changed, 5 insertions, 5 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php
index 4745ea2d3..9df5f991c 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -85,7 +85,7 @@
{
global $CONFIG, $DB_PROFILE, $dbcalls;
- if ($CONFIG->debug)
+ if (isset($CONFIG->debug) && $CONFIG->debug)
{
error_log("***************** DB PROFILING ********************");
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 9e7c708e0..e0970ef91 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -171,7 +171,7 @@
if (!$success && isset($CONFIG->debug) && $CONFIG->debug == true) {
error_log(" [This view ({$view}) does not exist] ");
}
- } else if ($CONFIG->debug == true && !file_exists($location . "{$viewtype}/{$view}.php")) {
+ } else if (isset($CONFIG->debug) && $CONFIG->debug == true && !file_exists($location . "{$viewtype}/{$view}.php")) {
error_log($location . "{$viewtype}/{$view}.php");
error_log(" [This view ({$view}) does not exist] ");
}
diff --git a/engine/lib/metastrings.php b/engine/lib/metastrings.php
index 4e56ac9e0..fe8cb5bcf 100644
--- a/engine/lib/metastrings.php
+++ b/engine/lib/metastrings.php
@@ -31,7 +31,7 @@
$result = array_search($string, $METASTRINGS_CACHE);
if ($result!==false) {
- if ($CONFIG->debug)
+ if (isset($CONFIG->debug) && $CONFIG->debug)
error_log("** Returning id for string:$string from cache.");
return $result;
@@ -45,7 +45,7 @@
if ($row) {
$METASTRINGS_CACHE[$row->id] = $row->string; // Cache it
- if ($CONFIG->debug)
+ if (isset($CONFIG->debug) && $CONFIG->debug)
error_log("** Cacheing string '{$row->string}'");
return $row->id;
diff --git a/mod/profile/actions/iconupload.php b/mod/profile/actions/iconupload.php
index 115836eb6..967e58d70 100644
--- a/mod/profile/actions/iconupload.php
+++ b/mod/profile/actions/iconupload.php
@@ -70,7 +70,7 @@
//forward the user back to the upload page to crop
- $url = $vars['url'] . "mod/profile/editicon.php";
+ $url = "mod/profile/editicon.php";
if (isloggedin()) forward($url);