]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove some debug output and supress some possible errors
authorRobin Appelman <icewind1991@gmail.com>
Fri, 22 Jul 2011 17:37:00 +0000 (19:37 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Fri, 22 Jul 2011 17:37:25 +0000 (19:37 +0200)
apps/files_publiclink/get.php
apps/media/ajax/api.php

index 60570ac224924722de49bb3ffe723dab12c53f08..d3e3022e76177c8c0d61435dc4c998752905d612 100644 (file)
@@ -72,7 +72,7 @@ if($path!==false){
                header('Content-Length: ' . OC_FILESYSTEM::filesize($path));
                
                //download the file
-               ob_clean();
+               @ob_clean();
                OC_FILESYSTEM::readfile($path);
        }
 }else{
index cf0d472758cc4a7c8a0ff2996b2255a058dc6792..bd18bb51b5c423fbdb945a7da61742441ea2eb47 100644 (file)
@@ -33,7 +33,7 @@ require_once('../lib_scanner.php');
 error_reporting(E_ALL); //no script error reporting because of getID3
 
 $arguments=$_POST;
-print_r($_POST);
+
 if(!isset($_POST['action']) and isset($_GET['action'])){
        $arguments=$_GET;
 }
@@ -42,7 +42,7 @@ foreach($arguments as &$argument){
        $argument=stripslashes($argument);
 }
 global $CONFIG_DATADIRECTORY;
-ob_clean();
+@ob_clean();
 if(!isset($arguments['artist'])){
        $arguments['artist']=0;
 }