From 7f660302e2eaebc037ffc637a4d2dfd4856e00d5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Wed, 19 Jun 2013 23:46:18 +0200 Subject: [PATCH] Fix: Inconsistency arrays into php function --- htdocs/core/class/translate.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index b5f2dfce9c3..ffa06230d20 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -759,6 +759,7 @@ class Translate { $this->load("dict"); $label=array(); + foreach($this->cache_currencies as $key => $val) $label[$key]=$val['label']; $num = $db->num_rows($resql); $i = 0; @@ -772,9 +773,9 @@ class Translate $label[$obj->code_iso] = $this->cache_currencies[$obj->code_iso]['label']; $i++; } - + //print count($label).' '.count($this->cache_currencies); array_multisort($label, SORT_ASC, $this->cache_currencies); - + //var_dump($this->cache_currencies); $this->cache_currencies is now sorted onto label return $num; } else -- GitLab