From 1ff4df07755a83a988588e4eec32bd24c95cc3af Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be>
Date: Mon, 10 Apr 2017 13:01:28 +0200
Subject: [PATCH] Fixes #5472 Fixed error resulting in bad HTML code

---
 include/class_listing.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class_listing.inc b/include/class_listing.inc
index aabd57515..2d2c0b4ea 100644
--- a/include/class_listing.inc
+++ b/include/class_listing.inc
@@ -371,7 +371,7 @@ class listing
 
     // No results? Just take an empty colspanned row
     if (count($this->entries) + count($this->departments) == 0) {
-      $result .= '<tr><td colspan="'.$this->numColumns + ($this->multiSelect ? 1 : 0).'" style="height:100%;width:100%;">&nbsp;</td></tr>'."\n";
+      $result .= '<tr><td colspan="'.($this->numColumns + ($this->multiSelect ? 1 : 0)).'" style="height:100%;width:100%;">&nbsp;</td></tr>'."\n";
     }
 
     // Draw department browser if configured and we're not in sub mode
-- 
GitLab