Skip to content

Commit 5342602

Browse files
committed
Fix null array offset in _destroy() for PHP 8.5
1 parent 7a27012 commit 5342602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tcpdf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7884,7 +7884,7 @@ public function Output($name='doc.pdf', $dest='I') {
78847884
* @since 4.5.016 (2009-02-24)
78857885
*/
78867886
public function _destroy($destroyall=false, $preserve_objcopy=false) {
7887-
if (isset(self::$cleaned_ids[$this->file_id])) {
7887+
if (isset($this->file_id) && isset(self::$cleaned_ids[$this->file_id])) {
78887888
$destroyall = false;
78897889
}
78907890
if ($destroyall AND !$preserve_objcopy && isset($this->file_id)) {

0 commit comments

Comments
 (0)