Skip to content

Commit

Permalink
Bump tecnickcom/tcpdf dependency to support php 8 (#12816)
Browse files Browse the repository at this point in the history
Also fix undefined variable error
  • Loading branch information
Jellyfrog committed Apr 30, 2021
1 parent 61c8979 commit 49ec6aa
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"predis/predis": "^1.1",
"rmccue/requests": "^1.7",
"symfony/yaml": "^4.0",
"tecnickcom/tcpdf": "~6.2.0",
"tecnickcom/tcpdf": "^6.4",
"tightenco/ziggy": "^0.9",
"wpb/string-blade-compiler": "^6.0"
},
Expand Down
23 changes: 15 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions includes/html/reports/alert-log.pdf.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
$pdf->AddPage('L');
$where = '1';

$param = [];
$data = [];

if (is_numeric($_GET['device_id'])) {
$where .= ' AND E.device_id = ?';
$param[] = $_GET['device_id'];
Expand Down

0 comments on commit 49ec6aa

Please sign in to comment.