update array fonction for php compatibility

This commit is contained in:
Tout Pratique 2015-11-04 10:38:03 +01:00
parent c5948f6e68
commit 21cf291991
2 changed files with 37 additions and 37 deletions

View File

@ -36,8 +36,8 @@ if (Configuration::get('PS_JS_HTML_THEME_COMPRESSION'))
$smarty->registerPlugin("function","printCouleur", "print_couleur");
function print_couleur($params, $smarty) {
$colors = ['#d2e1e6', '#d7e9e7', '#ebd1dc',
'#ddd6e1', '#efd2d4', '#ebebd9'];
$colors = array('#d2e1e6', '#d7e9e7', '#ebd1dc',
'#ddd6e1', '#efd2d4', '#ebebd9');
return $colors[array_rand($colors)];
}