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:
@@ -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), '-');
|
||||
|
Reference in New Issue
Block a user