Summary | Typos in framework/File_PDF/PDF.php |
Queue | Horde Framework Packages |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | |
Requester | olli.korhonen (at) iki (dot) fi |
Created | 01/28/2005 (7470 days ago) |
Due | |
Updated | 11/03/2014 (3904 days ago) |
Assigned | |
Resolved | 01/28/2005 (7470 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
New Attachment: PDF.php.patch
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Typos in framework/File_PDF/PDF.php
Queue ⇒ Horde Framework Packages
diff -u -3 -p -u -r1.19 PDF.php
--- framework/File_PDF/PDF.php 3 Jan 2005 13:09:04 -0000 1.19
+++ framework/File_PDF/PDF.php 28 Jan 2005 20:10:05 -0000
@@ -956,9 +956,9 @@ class File_PDF {
function setFillColor($cs = 'rgb', $c1, $c2 = 0, $c3 = 0, $c4 = 0)
{
$cs = strtolower($cs);
- if ($cs = 'rgb') {
+ if ($cs == 'rgb') {
$this->_fill_color = sprintf('%.3f %.3f %.3f rg', $c1, $c2, $c3);
- } elseif ($cs = 'cmyk') {
+ } elseif ($cs == 'cmyk') {
$this->_fill_color = sprintf('%.3f %.3f %.3f %.3f k',
$c1, $c2, $c3, $c4);
} else {
$this->_fill_color = sprintf('%.3f g', $c1);
@@ -997,9 +997,9 @@ class File_PDF {
function setDrawColor($cs = 'rgb', $c1, $c2 = 0, $c3 = 0, $c4 = 0)
{
$cs = strtolower($cs);
- if ($cs = 'rgb') {
+ if ($cs == 'rgb') {
$this->_draw_color = sprintf('%.3f %.3f %.3f RG', $c1, $c2, $c3);
- } elseif ($cs = 'cmyk') {
+ } elseif ($cs == 'cmyk') {
$this->_draw_color = sprintf('%.3f %.3f %.3f %.3f K',
$c1, $c2, $c3, $c4);
} else {
$this->_draw_color = sprintf('%.3f G', $c1);