From 8648e3c43c26da898c17798f89d60c9505d149b3 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 22 Sep 2011 19:24:32 +0200 Subject: only call error_log() if DEBUG is true Signed-off-by: Florian Pritz --- lib/filestorage/local.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/filestorage') diff --git a/lib/filestorage/local.php b/lib/filestorage/local.php index 07759b0e88c..180b056f344 100644 --- a/lib/filestorage/local.php +++ b/lib/filestorage/local.php @@ -195,7 +195,7 @@ class OC_Filestorage_Local extends OC_Filestorage{ } private function delTree($dir) { - error_log('del'.$dir); + if(defined("DEBUG") && DEBUG) {error_log('del'.$dir);} $dirRelative=$dir; $dir=$this->datadir.$dir; if (!file_exists($dir)) return true; -- cgit v1.2.3