X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_divlist.inc;h=ef1c137e9b621157a9f410f412101789aeec2a4b;hb=e4bf3ecc1b431adcb5b9ad1bdf58d7e3739f6849;hp=3ad7a51fff508866bad09a932e38182b8191ee44;hpb=8d4c9fa8964a08c58f0b5d783167dda69647485c;p=gosa.git diff --git a/include/class_divlist.inc b/include/class_divlist.inc index 3ad7a51ff..ef1c137e9 100644 --- a/include/class_divlist.inc +++ b/include/class_divlist.inc @@ -55,7 +55,10 @@ class divlist { // MSIE and non-MSIE browsers. ATM we need to manually set entriesPerPage to // a non-zero value, because MSIE won't scroll the tbody properly. $s_browser = isset($_SERVER['HTTP_USER_AGENT'])?$_SERVER['HTTP_USER_AGENT']:""; - if(strpos($s_browser,'Mozilla') != 0 && ((strpos($_SERVER['HTTP_USER_AGENT'],'MSIE') == 0) && (strpos($_SERVER['HTTP_USER_AGENT'],'KHTML') == 0))){ + if(is_numeric(strpos($s_browser,'Mozilla')) && + !is_numeric(strpos($s_browser,'MSIE')) && + !is_numeric(strpos($s_browser,'KHTML')) + ){ $s_return.= "".$this->_generateHeader().""; // Define an alternate style for IE (not used ATM) // $s_return.= ""; @@ -145,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;