aboutsummaryrefslogtreecommitdiffstats
path: root/apps/media/lib_media.php
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 /apps/media/lib_media.php
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 'apps/media/lib_media.php')
-rw-r--r--apps/media/lib_media.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/media/lib_media.php b/apps/media/lib_media.php
index 3086f84a93a..1d8321a774c 100644
--- a/apps/media/lib_media.php
+++ b/apps/media/lib_media.php
@@ -37,7 +37,7 @@ class OC_MEDIA{
*/
public static function loginListener($params){
if(isset($_POST['user']) and $_POST['password']){
- error_log('postlogin');
+ if(defined("DEBUG") && DEBUG) {error_log('postlogin');}
$name=$_POST['user'];
$query=OC_DB::prepare("SELECT user_id from *PREFIX*media_users WHERE user_id LIKE ?");
$uid=$query->execute(array($name))->fetchAll();