mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
use html_entity_decode, as we add options with .text(), it can't be entities, but php knows no string literals with utf-8
This commit is contained in:
parent
7dd54648b9
commit
31ab3d9d75
@ -291,7 +291,13 @@ class etemplate_widget_menupopup extends etemplate_widget
|
||||
|
||||
if (categories::is_global($cat))
|
||||
{
|
||||
$s .= ' ♦';
|
||||
static $global_marker;
|
||||
if (is_null($global_marker))
|
||||
{
|
||||
// as we add options with .text(), it can't be entities, but php knows no string literals with utf-8
|
||||
$global_marker = html_entity_decode(' ♦', ENT_NOQUOTES, 'utf-8');
|
||||
}
|
||||
$s .= $global_marker;
|
||||
}
|
||||
$options[$cat['id']] = empty($cat['description']) ? $s : array(
|
||||
'label' => $s,
|
||||
|
Loading…
Reference in New Issue
Block a user