1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-25 15:31:41 +02:00

Banner GUI fixes.

This commit is contained in:
Cameron
2013-03-16 21:20:39 -07:00
parent 1830401b08
commit 8ae11ba079
2 changed files with 58 additions and 57 deletions

View File

@@ -1166,7 +1166,7 @@ class e_form
* @param array $option_array
* @param boolean $selected [optional]
* @param string|array $options [optional]
* @param boolean $defaultBlank [optional] set to TRUE if the first entry should be blank
* @param boolean|string $defaultBlank [optional] set to TRUE if the first entry should be blank, or to a string to use it for the blank description.
* @return string HTML text for display
*/
function selectbox($name, $option_array, $selected = false, $options = array(), $defaultBlank= false)
@@ -1192,7 +1192,8 @@ class e_form
}
elseif($defaultBlank)
{
$text .= $this->option(' ', '');
$diz = is_string($defaultBlank) ? $defaultBlank : ' ';
$text .= $this->option($diz, '');
}
if(varset($options['useValues'])) // use values as keys.