mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
PHP Notice removal
This commit is contained in:
@@ -2443,7 +2443,7 @@ class e_parse extends e_parser
|
|||||||
{
|
{
|
||||||
$parm = $width;
|
$parm = $width;
|
||||||
$multiply = $width['size'];
|
$multiply = $width['size'];
|
||||||
$encode = $width['x'];
|
$encode = (!empty($width['x'])) ? $width['x'] : false;
|
||||||
$width = $width['size'];
|
$width = $width['size'];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2495,6 +2495,16 @@ class e_parse extends e_parser
|
|||||||
$parm['ah'] = null;
|
$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 = 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 );
|
// $parms = !empty($this->thumbCrop) ? array('aw' => $width, 'ah' => $height, 'x'=>$encode) : array('w' => $width, 'h' => $height, 'x'=>$encode );
|
||||||
|
@@ -1193,7 +1193,7 @@ class e_db_mysql
|
|||||||
|
|
||||||
// $result = ($this->pdo) ? $result : mysql_affected_rows($this->mySQLaccess);
|
// $result = ($this->pdo) ? $result : mysql_affected_rows($this->mySQLaccess);
|
||||||
$this->dbError('db_Update');
|
$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;
|
return $result;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -85,6 +85,7 @@ class banner_shortcodes extends e_shortcode
|
|||||||
if($row['banner_image'][0] == '{')
|
if($row['banner_image'][0] == '{')
|
||||||
{
|
{
|
||||||
$src = $row['banner_image'];
|
$src = $row['banner_image'];
|
||||||
|
$style = '';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user