summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-09-22 19:24:32 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-09-24 18:41:47 +0200
commit8648e3c43c26da898c17798f89d60c9505d149b3 (patch)
tree34e10780eca9ec004900163f958f79192a0f226c /files
parent9c550e8e9f52efa9c117ef1b577386e555010547 (diff)
downloadnextcloud-server-8648e3c43c26da898c17798f89d60c9505d149b3.tar.gz
nextcloud-server-8648e3c43c26da898c17798f89d60c9505d149b3.zip
only call error_log() if DEBUG is true
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'files')
-rw-r--r--files/ajax/newfolder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/ajax/newfolder.php b/files/ajax/newfolder.php
index 610418583bd..8eb05280e73 100644
--- a/files/ajax/newfolder.php
+++ b/files/ajax/newfolder.php
@@ -20,7 +20,7 @@ if($foldername == '') {
echo json_encode( array( "status" => "error", "data" => array( "message" => "Empty Foldername" )));
exit();
}
-error_log('try to create ' . $foldername . ' in ' . $dir);
+if(defined("DEBUG") && DEBUG) {error_log('try to create ' . $foldername . ' in ' . $dir);}
if(OC_Files::newFile($dir, $foldername, 'dir')) {
echo json_encode( array( "status" => "success", "data" => array()));
exit();