// If there is an error then return a blank image
if ((substr($fetchResult->getReturnCode(), 0, 1) == '4') || (!$img_str)) {
- self::responseError($request);
+ self::responseError();
// stop.
}
$image = new Image($img_str, $mime);
if (!$image->isValid()) {
- self::responseError($request);
+ self::responseError();
// stop.
}
private static function getRequestInfo()
{
$a = self::getApp();
- $url = '';
$size = 1024;
$sizetype = '';
*
*/
private static function responseError() {
- header('Content-type: ' . $img->getType());
+ header('Content-type: image/png');
echo file_get_contents('images/blank.png');
exit();
}