1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +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 );

View File

@@ -1193,7 +1193,7 @@ class e_db_mysql
// $result = ($this->pdo) ? $result : mysql_affected_rows($this->mySQLaccess);
$this->dbError('db_Update');
if ($result == -1) { return false; } // Error return from mysql_affected_rows
if ($result === -1) { return false; } // Error return from mysql_affected_rows
return $result;
}
else

View File

@@ -85,6 +85,7 @@ class banner_shortcodes extends e_shortcode
if($row['banner_image'][0] == '{')
{
$src = $row['banner_image'];
$style = '';
}
else
{