From 41a2da234a1425df0aa09ee339076f52e78ead4c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 22 Jul 2011 19:37:00 +0200 Subject: [PATCH] remove some debug output and supress some possible errors --- apps/files_publiclink/get.php | 2 +- apps/media/ajax/api.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/files_publiclink/get.php b/apps/files_publiclink/get.php index 60570ac2249..d3e3022e761 100644 --- a/apps/files_publiclink/get.php +++ b/apps/files_publiclink/get.php @@ -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{ diff --git a/apps/media/ajax/api.php b/apps/media/ajax/api.php index cf0d472758c..bd18bb51b5c 100644 --- a/apps/media/ajax/api.php +++ b/apps/media/ajax/api.php @@ -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; } -- 2.39.5