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:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user