Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-09-22 21:24:32 +0400
committerFlorian Pritz <bluewind@xinu.at>2011-09-24 20:41:47 +0400
commit8648e3c43c26da898c17798f89d60c9505d149b3 (patch)
tree34e10780eca9ec004900163f958f79192a0f226c /lib/preferences.php
parent9c550e8e9f52efa9c117ef1b577386e555010547 (diff)
only call error_log() if DEBUG is true
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'lib/preferences.php')
-rw-r--r--lib/preferences.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/preferences.php b/lib/preferences.php
index 5af007f0223..b4bd6777f9e 100644
--- a/lib/preferences.php
+++ b/lib/preferences.php
@@ -140,7 +140,7 @@ class OC_Preferences{
// Check if the key does exist
$query = OC_DB::prepare( 'SELECT configvalue FROM *PREFIX*preferences WHERE userid = ? AND appid = ? AND configkey = ?' );
$values=$query->execute(array($user,$app,$key))->fetchAll();
- error_log(print_r($values,true));
+ if(defined("DEBUG") && DEBUG) {error_log(print_r($values,true));}
$exists=(count($values)>0);
if( !$exists ){