oseawey / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

part of code is never reached #134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The following part is never reach.
elseif (!$new_width && !$new_height) {
        $new_width = $width;
        $new_height = $height;
}

Because we test for !$new_width && !$new_height above with 
if ($new_width == 0 && $new_height == 0)

This part should be removed or replaced
because obviously we can not do :
if ($new_width == 100 && $new_height == 100)

Original issue reported on code.google.com by gibbo...@gmail.com on 25 Nov 2010 at 2:27

GoogleCodeExporter commented 9 years ago
good catch - will be in the next commit

Original comment by BinaryMoon on 26 Nov 2010 at 11:47