Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/tcpdf/include/tcpdf_images.php2
-rw-r--r--libs/tcpdf/tcpdf.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/tcpdf/include/tcpdf_images.php b/libs/tcpdf/include/tcpdf_images.php
index c43eb69604..5ce9e578f7 100644
--- a/libs/tcpdf/include/tcpdf_images.php
+++ b/libs/tcpdf/include/tcpdf_images.php
@@ -235,7 +235,7 @@ class TCPDF_IMAGES {
* @public static
*/
public static function _parsepng($file) {
- $f = fopen($file, 'rb');
+ $f = @fopen($file, 'rb');
if ($f === false) {
// Can't open image file
return false;
diff --git a/libs/tcpdf/tcpdf.php b/libs/tcpdf/tcpdf.php
index 1999010026..44505e79a6 100644
--- a/libs/tcpdf/tcpdf.php
+++ b/libs/tcpdf/tcpdf.php
@@ -6973,7 +6973,7 @@ class TCPDF {
if (($info === false) AND function_exists($gdfunction)) {
try {
// GD library
- $img = $gdfunction($file);
+ $img = @$gdfunction($file);
if ($img !== false) {
if ($resize) {
$imgr = imagecreatetruecolor($neww, $newh);