Advertisement
snake5

Crap code #1 - hide detailed errors to emit useless ones

Mar 10th, 2014
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. $handle = @imagecreatefromstring($data);
  2. if (!self::isValidImageHandle($handle))
  3. {
  4.     JError::raiseError(500, JText::_('JLIB_GDIMAGE_ERROR_INVALID_SOURCE') );
  5.     return false;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement