mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
Fix: Bug war.
Look: enhance look for map views.
This commit is contained in:
@@ -3994,6 +3994,19 @@ function unichr($unicode , $encoding = 'UTF-8')
|
||||
{
|
||||
return mb_convert_encoding("&#{$unicode};", $encoding, 'HTML-ENTITIES');
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert an array with RGB value into hex RGB value
|
||||
*
|
||||
* @param array $arraycolor Array
|
||||
* @param string $colorifnotfound Color code to return if entry not defined
|
||||
* @return string RGB hex value (without # before). For example: FF00FF
|
||||
*/
|
||||
function colorArrayToHex($arraycolor,$colorifnotfound='888888')
|
||||
{
|
||||
if (! is_array($arraycolor)) return $colorifnotfound;
|
||||
return dechex($arraycolor[0]).dechex($arraycolor[1]).dechex($arraycolor[2]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a currency code into its symbol
|
||||
|
||||
Reference in New Issue
Block a user