From c97539206958a451aa216e0830ce8f9ec403f5ae Mon Sep 17 00:00:00 2001 From: Ruben Date: Thu, 3 Nov 2016 01:10:22 +0100 Subject: [PATCH] Fix images fixed order --- src/Api/InterfaceControllerProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/InterfaceControllerProvider.php b/src/Api/InterfaceControllerProvider.php index fc2864b..86c73a4 100644 --- a/src/Api/InterfaceControllerProvider.php +++ b/src/Api/InterfaceControllerProvider.php @@ -35,7 +35,7 @@ class InterfaceControllerProvider implements ControllerProviderInterface $img = "data:image/x-icon;base64,".$hit->getFeatureImgAsString($feature); $score = $hit->getEmotions()->getEmotionScore($emotion); $percentage = sprintf("%.0f %%",$score); - $blocks[] = [ + $blocks[$i] = [ 'hit_id' => $hit->getId(), 'img_data' => $img, 'percentage' => $percentage,