[Tickets #1276] NEW: Typos in framework/File_PDF/PDF.php

bugs at bugs.horde.org bugs at bugs.horde.org
Fri Jan 28 12:11:40 PST 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=1276
-----------------------------------------------------------------------
 Ticket     | 1276
 Created By | olli.korhonen at iki.fi
 Summary    | Typos in framework/File_PDF/PDF.php
 Queue      | Horde Framework Packages
 State      | Unconfirmed
 Priority   | 1. Low
 Type       | Bug
 Owners     | 
-----------------------------------------------------------------------


olli.korhonen at iki.fi (2005-01-28 12:11) wrote:

Typos in framework/File_PDF/PDF.php:

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);





More information about the bugs mailing list