summaryrefslogtreecommitdiffstats
path: root/0001-fix-Undefined-property-GLPIPDF-imagekeys.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-fix-Undefined-property-GLPIPDF-imagekeys.patch')
-rw-r--r--0001-fix-Undefined-property-GLPIPDF-imagekeys.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/0001-fix-Undefined-property-GLPIPDF-imagekeys.patch b/0001-fix-Undefined-property-GLPIPDF-imagekeys.patch
new file mode 100644
index 0000000..07a91f6
--- /dev/null
+++ b/0001-fix-Undefined-property-GLPIPDF-imagekeys.patch
@@ -0,0 +1,29 @@
+From aeb25939d50249a7de4a8ff5d9d8121b41084678 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Thu, 19 Sep 2019 13:14:28 +0200
+Subject: [PATCH] fix Undefined property: GLPIPDF::$imagekeys
+
+---
+ tcpdf.php | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/tcpdf.php b/tcpdf.php
+index 8238784..d1cf110 100644
+--- a/tcpdf.php
++++ b/tcpdf.php
+@@ -7796,8 +7796,10 @@ class TCPDF {
+ }
+ closedir($handle);
+ }
+- foreach($this->imagekeys as $file) {
+- unlink($file);
++ if (isset($this->imagekeys)) {
++ foreach($this->imagekeys as $file) {
++ unlink($file);
++ }
+ }
+ }
+ $preserve = array(
+--
+2.20.1
+