Home » Images » Image_Transform » Bug #6976
wrong handling of $type param in display() (IM.php)
Details
| Submitted | 2006-03-01 17:08 UTC |
|---|---|
| From | as at mindcom dot de |
| Assigned | jausions |
| Status | Closed |
| Package | Image_Transform |
| PHP Version | 5.1.1 |
| OS | WINXP |
| Roadmaps | (Not assigned) |
Comments
[2006-03-01 17:08 UTC] as at mindcom dot de
Description:
------------
function display in IM.php
-> strtoupper(($type == '') ? $type : $this->type);
but it should be something like this (old style ;)
if ($type == '')
{
$type = $this->type;
}
$type = strtoupper($type);
[2006-03-01 18:01 UTC] reywob at php dot net
just to clarify: what's wrong with the original?
[2006-03-01 18:10 UTC] reywob at php dot net
ah missed that, thought there was something wrong with the ternary operator ;)
[2006-03-02 08:56 UTC] as at mindcom dot de
thank you for your immediate attention!