1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 03:24:20 +02:00

PHP Notice removal

This commit is contained in:
Cameron
2016-09-17 11:10:25 -07:00
parent a67955f580
commit b4e1cccfa0
3 changed files with 13 additions and 2 deletions

View File

@@ -2443,7 +2443,7 @@ class e_parse extends e_parser
{
$parm = $width;
$multiply = $width['size'];
$encode = $width['x'];
$encode = (!empty($width['x'])) ? $width['x'] : false;
$width = $width['size'];
}
@@ -2495,6 +2495,16 @@ class e_parse extends e_parser
$parm['ah'] = null;
}
if(!isset($parm['x']))
{
$parm['x'] = null;
}
if(!isset($parm['crop']))
{
$parm['crop'] = null;
}
$parms = array('w'=>$width,'h'=>$height,'crop'=> $parm['crop'],'x'=>$parm['x'], 'aw'=>$parm['aw'],'ah'=>$parm['ah']);
// $parms = !empty($this->thumbCrop) ? array('aw' => $width, 'ah' => $height, 'x'=>$encode) : array('w' => $width, 'h' => $height, 'x'=>$encode );