Skip to content

Commit

Permalink
fix export PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
callcenter-magnus committed Jul 25, 2024
1 parent 6d0e380 commit 9c1fded
Show file tree
Hide file tree
Showing 3 changed files with 721 additions and 551 deletions.
Binary file modified build/MagnusBilling-current.tar.gz
Binary file not shown.
9 changes: 8 additions & 1 deletion protected/components/Report.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,14 @@ public function Header()
{
if ($this->PageNo() === 1) {
$date = utf8_decode($this->strDate) . date($this->formatDate);
$user = isset($_SESSION[$this->idxUserSession]) ? utf8_decode($this->strUser) . $_SESSION[$this->idxUserSession] : isset($this->user) ? $this->user : null;

if (isset($_SESSION[$this->idxUserSession])) {
$user = utf8_decode($this->strUser) . $_SESSION[$this->idxUserSession];
} elseif (isset($this->user)) {
$user = $this->user;
} else {
$user = null;
}

if (strlen($this->logo) > 10) {
$this->Image($this->logo, 10, 8, 50);
Expand Down
Loading

0 comments on commit 9c1fded

Please sign in to comment.