summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Wilenski <wooc@gazeta.pl>2010-09-07 17:47:34 +0000
committerŁukasz Wilenski <wooc@gazeta.pl>2010-09-07 17:47:34 +0000
commit66f768278a1b3035ee427aad093ccaade7eb7599 (patch)
treee2b5105833fcda5dbc4972b770e69a0610a10433
parent26c87057fdb09d1bb87a4c934f0793d2a5992ea4 (diff)
downloadwebtrees-66f768278a1b3035ee427aad093ccaade7eb7599.tar.gz
webtrees-66f768278a1b3035ee427aad093ccaade7eb7599.tar.bz2
webtrees-66f768278a1b3035ee427aad093ccaade7eb7599.zip
fix count
-rw-r--r--modules/top10_surnames/module.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/top10_surnames/module.php b/modules/top10_surnames/module.php
index 5b61213f47..fe7ac39bea 100644
--- a/modules/top10_surnames/module.php
+++ b/modules/top10_surnames/module.php
@@ -71,7 +71,7 @@ class top10_surnames_WT_Module extends WT_Module implements WT_Module_Block {
$all_surnames=array_merge($all_surnames, get_indilist_surns($top_surname, '', false, false, WT_GED_ID));
if (++$i == $num) break;
}
-
+ if ($i < $num) $num=$i;
$id=$this->getName().$block_id;
$title='';
if ($ctype=="gedcom" && WT_USER_GEDCOM_ADMIN || $ctype=="user" && WT_USER_ID) {