1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-09 08:06:38 +02:00

PHP8/Bootstrap5 Fixes

This commit is contained in:
Cameron
2021-01-29 20:11:49 -08:00
parent 0610dad19a
commit eee039b616
5 changed files with 18 additions and 8 deletions

View File

@@ -986,7 +986,7 @@ class e_form
* @param $ajax
* @return string
*/
public function iconpicker($name, $default, $label, $options = array(), $ajax = true)
public function iconpicker($name, $default, $label='', $options = array(), $ajax = true)
{
//v2.2.0
unset($label,$ajax); // no longer used.
@@ -4064,6 +4064,11 @@ var_dump($select_options);*/
return '';
}
if(is_array($value))
{
$value = null;
}
//format data first
$name = trim($this->name2id($name), '-');
$value = trim(preg_replace('#[^a-zA-Z0-9\-]#', '-', $value), '-');