From: hickert Date: Tue, 8 Nov 2005 10:32:38 +0000 (+0000) Subject: Divlist, was broken when no entry was given X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=520b56255890b1586af73e09e04bb7433a9c69d3;p=gosa.git Divlist, was broken when no entry was given git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1874 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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;