diff options
Diffstat (limited to 'functions.inc.php')
| -rw-r--r-- | functions.inc.php | 11 | 
1 files changed, 8 insertions, 3 deletions
| diff --git a/functions.inc.php b/functions.inc.php index 48c7178..08d5f33 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -35,9 +35,14 @@ function filter($data, $type = NULL) {  	return $data;  } -function getPerPageCount() { -	global $defaultPerPage; -	return $defaultPerPage; +function getPerPageCount($userObject = null) { +	global $defaultPerPage, $defaultPerPageForAdmins; +	 +	if(isset($defaultPerPageForAdmins) && $userObject != null && $userObject->isAdmin()) {		 +		return $defaultPerPageForAdmins; +	} else { +		return $defaultPerPage; +	}  }  function getSortOrder($override = NULL) { | 
