From: janw Date: Mon, 7 Nov 2005 14:00:49 +0000 (+0000) Subject: Set default to fallback-method (with pagenums). Only set to new behavior on mozilla... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8d4c9fa8964a08c58f0b5d783167dda69647485c;p=gosa.git 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 --- 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.= "";