1
0
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:
Cameron
2017-03-31 19:04:34 -07:00
parent 80fbb2a334
commit fcbe12c5f6
3 changed files with 23 additions and 9 deletions

View File

@@ -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']))
{