diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2012-02-08 12:43:05 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2012-02-08 12:43:05 +0400 |
commit | fc11591dca4fc3b40e77f24d301944c23641ab61 (patch) | |
tree | b57f7cd2039f270a37b30454f018c27ed7d4278b /core/ReportRenderer/Pdf.php | |
parent | 2f4679463b54f1a0d7bc70a44f4fa7a56a50dcae (diff) |
Fixes #2859
git-svn-id: http://dev.piwik.org/svn/trunk@5782 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/ReportRenderer/Pdf.php')
-rw-r--r-- | core/ReportRenderer/Pdf.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/ReportRenderer/Pdf.php b/core/ReportRenderer/Pdf.php index 657e52199d..7ee546b443 100644 --- a/core/ReportRenderer/Pdf.php +++ b/core/ReportRenderer/Pdf.php @@ -340,7 +340,11 @@ class Piwik_ReportRenderer_Pdf extends Piwik_ReportRenderer if ($logoHeight < 16) { $topMargin = 2; } - $this->TCPDF->Image(Piwik_Common::getPathToPiwikRoot() . "/" . $rowMetadata['logo'], $posX + ($leftMargin = 2), $posY + $topMargin, $logoWidth / 4); + $path = Piwik_Common::getPathToPiwikRoot() . "/" . $rowMetadata['logo']; + if(file_exists($path)) + { + $this->TCPDF->Image($path, $posX + ($leftMargin = 2), $posY + $topMargin, $logoWidth / 4); + } $this->TCPDF->SetXY($restoreX, $restoreY); } } |