Code

Only show "entries per page" if there is at least one entry
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Nov 2005 07:32:19 +0000 (07:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Nov 2005 07:32:19 +0000 (07:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2056 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index 35fd58163cbc42fac488374770530963d0db500b..b4d908e15bf8a37fc7b5afa89a105d1435b5e525 100644 (file)
@@ -1270,7 +1270,7 @@ function range_selector($dcnt,$start,$range=25,$post_var=false)
       "<img alt=\"\" src=\"images/forward.png\" border=0 align=\"middle\"></a>";
   }
 
-  if($post_var){
+  if(($post_var)&&($numpages)){
     $output.= "</td><td style='width:20%;text-align:right'>&nbsp;"._("Entries per page")."&nbsp;<select name='".$post_var."' onChange='javascript:document.mainform.submit()'>";
     foreach(array(20,50,100,200,"all") as $num){
       if($num == "all"){