mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Issue #5079 PHP Warning.
This commit is contained in:
@@ -2316,10 +2316,10 @@ class e_parse
|
|||||||
|
|
||||||
// cleanup.
|
// cleanup.
|
||||||
$newOpts = array(
|
$newOpts = array(
|
||||||
'w' => (string) intval($options['w']),
|
'w' => isset($options['w']) ? (string) intval($options['w']) : '',
|
||||||
'h' => (string) intval($options['h']),
|
'h' => isset($options['h']) ? (string) intval($options['h']) : '',
|
||||||
'aw' => (string) intval($options['aw']),
|
'aw' => isset($options['aw']) ? (string) intval($options['aw']) : '',
|
||||||
'ah' => (string) intval($options['ah']),
|
'ah' => isset($options['ah']) ? (string) intval($options['ah']) : '',
|
||||||
'c' => strtoupper(vartrue($options['c'], '0')),
|
'c' => strtoupper(vartrue($options['c'], '0')),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@@ -1374,6 +1374,11 @@ EXPECTED;
|
|||||||
'options' => array('w' => 222, 'h' => 272, 'aw' => 0, 'ah' => 0, 'c' => 0, 'type' => 'webp'),
|
'options' => array('w' => 222, 'h' => 272, 'aw' => 0, 'ah' => 0, 'c' => 0, 'type' => 'webp'),
|
||||||
'expected' => array('prefix' => 'thumb_butterfly_', 'suffix' => '.webp.cache.bin'),
|
'expected' => array('prefix' => 'thumb_butterfly_', 'suffix' => '.webp.cache.bin'),
|
||||||
),
|
),
|
||||||
|
2 => array(
|
||||||
|
'file' => 'e107_plugins/gallery/images/butterfly.jpg',
|
||||||
|
'options' => array('w' => 222, 'h' => 272, 'c' => 0, 'type' => 'webp'),
|
||||||
|
'expected' => array('prefix' => 'thumb_butterfly_', 'suffix' => '.webp.cache.bin'),
|
||||||
|
),
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user