From 520b56255890b1586af73e09e04bb7433a9c69d3 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 8 Nov 2005 10:32:38 +0000 Subject: [PATCH] Divlist, was broken when no entry was given git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1874 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_divlist.inc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/class_divlist.inc b/include/class_divlist.inc index aeb24a4a2..ef1c137e9 100644 --- a/include/class_divlist.inc +++ b/include/class_divlist.inc @@ -148,7 +148,17 @@ class divlist { $start=0; } } - + + /* If divlist is empty, append a single white entry */ + if(count($this->a_entries)==0){ + $str = ""; + for($i = 0 ; $i < count($this->a_header[0]); $i++){ + $str.=" "; + } + $str .=""; + return($str); + } + if ($this->i_entriesPerPage > 0) { while($start > $this->_numentries()){ $start = $start - $this->i_entriesPerPage; -- 2.30.2