From 820dbdbe74a741ebbcf20fd209b1386ca1b3d5ca Mon Sep 17 00:00:00 2001
From: pbarroca <pbarroca@afi-sa.fr>
Date: Mon, 23 Nov 2015 16:24:50 +0100
Subject: [PATCH] rel #5524 : php < 5.5 compatibility

---
 library/Class/Onglet.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/library/Class/Onglet.php b/library/Class/Onglet.php
index 0f6689b04cc..6f367e72556 100644
--- a/library/Class/Onglet.php
+++ b/library/Class/Onglet.php
@@ -118,7 +118,8 @@ class Class_Onglet {
 
 
   public function hasRecounts($record) {
-    return !empty(Class_Onglet_Analytics::getRecounts($record));
+    $recounts = Class_Onglet_Analytics::getRecounts($record);
+    return !empty($recounts);
   }
 
 
-- 
GitLab