diff --git a/addressbook/index.php b/addressbook/index.php index 3218b38661..2b366e185e 100755 --- a/addressbook/index.php +++ b/addressbook/index.php @@ -90,7 +90,12 @@ $search_filter = $phpgw->nextmatchs->show_tpl("index.php",$start, $this->total_records,"&order=$order&filter=$filter&sort=$sort&query=$query","75%", $phpgw_info["theme"]["th_bg"]); if ($this->total_records > $phpgw_info["user"]["preferences"]["common"]["maxmatchs"]) { - $lang_showing=lang("showing x - x of x",($start + 1),($start + $phpgw_info["user"]["preferences"]["common"]["maxmatchs"]),$this->total_records); + if ($start + $phpgw_info["user"]["preferences"]["common"]["maxmatchs"] > $this->total_records) { + $end = $this->total_records; + } else { + $end = $start + $phpgw_info["user"]["preferences"]["common"]["maxmatchs"]; + } + $lang_showing=lang("showing x - x of x",($start + 1),$end,$this->total_records); } else { $lang_showing=lang("showing x",$this->total_records); }