diff --git a/classes/file/FileHandler.class.php b/classes/file/FileHandler.class.php
index c2c6c5456..0234313a9 100644
--- a/classes/file/FileHandler.class.php
+++ b/classes/file/FileHandler.class.php
@@ -133,23 +133,23 @@
if(!$url_info['port']) $url_info['port'] = 80;
- $fp = fsockopen($url_info['host'], $url_info['port']);
+ $fp = @fsockopen($url_info['host'], $url_info['port']);
if(!$fp) return;
$header = sprintf("GET %s HTTP/1.0\r\nHost: %s\r\nReferer: %s://%s\r\n\r\n", $url_info['path'], $url_info['host'], $url_info['scheme'], $url_info['host']);
- fwrite($fp, $header);
+ @fwrite($fp, $header);
- $ft = fopen($target_filename, 'w');
+ $ft = @fopen($target_filename, 'w');
if(!$ft) return;
$begin = false;
while(!feof($fp)) {
$str = fgets($fp, 1024);
- if($begin) fwrite($ft, $str);
+ if($begin) @fwrite($ft, $str);
if(!trim($str)) $begin = true;
}
- fclose($ft);
- fclose($fp);
+ @fclose($ft);
+ @fclose($fp);
return true;
}
diff --git a/modules/document/queries/insertDocument.xml b/modules/document/queries/insertDocument.xml
index fe2660d53..f9a4ee7cb 100644
--- a/modules/document/queries/insertDocument.xml
+++ b/modules/document/queries/insertDocument.xml
@@ -12,8 +12,8 @@