mirror of
https://github.com/e107inc/e107.git
synced 2025-08-17 20:01:47 +02:00
PHP Notice fixes. mbstring function fallback.
This commit is contained in:
@@ -810,10 +810,22 @@ class e_form
|
||||
function number($name, $value=0, $maxlength = 200, $options = array())
|
||||
{
|
||||
if(is_string($options)) parse_str($options, $options);
|
||||
if (empty($options['maxlength'])) $maxlength = $options['maxlength'];
|
||||
|
||||
if(!empty($options['maxlength']))
|
||||
{
|
||||
$maxlength = $options['maxlength'];
|
||||
}
|
||||
|
||||
unset($options['maxlength']);
|
||||
if(empty($options['size'])) $options['size'] = 15;
|
||||
if(empty($options['class'])) $options['class'] = 'tbox number e-spinner input-small ';
|
||||
|
||||
if(empty($options['size']))
|
||||
{
|
||||
$options['size'] = 15;
|
||||
}
|
||||
if(empty($options['class']))
|
||||
{
|
||||
$options['class'] = 'tbox number e-spinner input-small ';
|
||||
}
|
||||
|
||||
if(!empty($options['size']))
|
||||
{
|
||||
|
Reference in New Issue
Block a user