diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-08-26 11:03:33 +0200 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-08-26 11:03:33 +0200 |
commit | 901998a9a517d96faff5c24fb40f98961f83c3cd (patch) | |
tree | 131dd9bce2ecfcd17f09a73b6b769a143ddf7a7b /system/libraries | |
parent | a6aa8beaa98fac53c2cc15972bf3d1400d0c4f6a (diff) |
Removed some error suppression, which would hide a Notice if the path cannot be read. I discovered this by foolishly passing the file_path, not the full_path but took forever for me to realise this as the error returned (thanks to this error suppression) was "GD is not installed" instead of "File cannot be read". Seeing that notice would have made much more sense.
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Image_lib.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php index 8902f524d..a8a0387d8 100644 --- a/system/libraries/Image_lib.php +++ b/system/libraries/Image_lib.php @@ -1334,7 +1334,7 @@ class CI_Image_lib { return FALSE; } - $vals = @getimagesize($path); + $vals = getimagesize($path); $types = array(1 => 'gif', 2 => 'jpeg', 3 => 'png'); |