From 8d4c9fa8964a08c58f0b5d783167dda69647485c Mon Sep 17 00:00:00 2001 From: janw Date: Mon, 7 Nov 2005 14:00:49 +0000 Subject: [PATCH] Set default to fallback-method (with pagenums). Only set to new behavior on mozilla-compatible browsers. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1853 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_divlist.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/class_divlist.inc b/include/class_divlist.inc index 1df4ac481..3ad7a51ff 100644 --- a/include/class_divlist.inc +++ b/include/class_divlist.inc @@ -54,7 +54,8 @@ class divlist { // TODO: Find a more convenient way to use the same functionality in both // 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. - if((strpos($_SERVER['HTTP_USER_AGENT'],'MSIE') == 0) && (strpos($_SERVER['HTTP_USER_AGENT'],'KHTML') == 0)){ + $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))){ $s_return.= "".$this->_generateHeader().""; // Define an alternate style for IE (not used ATM) // $s_return.= ""; -- 2.30.2