diff options
| author | Łukasz Wilenski <wooc@gazeta.pl> | 2011-11-18 16:14:37 +0000 |
|---|---|---|
| committer | Łukasz Wilenski <wooc@gazeta.pl> | 2011-11-18 16:14:37 +0000 |
| commit | 02a166323d8ee2e76c91fc17b438c7f25480eb75 (patch) | |
| tree | 15fa01429395cfbee6a29c068f973ccaf2a81dd0 /statisticsplot.php | |
| parent | 194ef6b686d38a8c6e20d186ea6d90e5effb48d0 (diff) | |
| download | webtrees-02a166323d8ee2e76c91fc17b438c7f25480eb75.tar.gz webtrees-02a166323d8ee2e76c91fc17b438c7f25480eb75.tar.bz2 webtrees-02a166323d8ee2e76c91fc17b438c7f25480eb75.zip | |
fix statistics
Diffstat (limited to 'statisticsplot.php')
| -rw-r--r-- | statisticsplot.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/statisticsplot.php b/statisticsplot.php index 01615ec7e4..8e7c7f63e3 100644 --- a/statisticsplot.php +++ b/statisticsplot.php @@ -392,38 +392,38 @@ function agma1() { $num = $stats->_statsMarrAge(false, 'M'); $indi=array(); foreach ($num as $values) { - if (!in_array($values['indi'], $indi)) { + if (!in_array($values['d_gid'], $indi)) { fill_ydata(0, floor($values['age']/365.25), 1); $n1++; - $indi[]=$values['indi']; + $indi[]=$values['d_gid']; } } $num = $stats->_statsMarrAge(false, 'F'); $indi=array(); foreach ($num as $values) { - if (!in_array($values['indi'], $indi)) { + if (!in_array($values['d_gid'], $indi)) { fill_ydata(0, floor($values['age']/365.25), 1); $n1++; - $indi[]=$values['indi']; + $indi[]=$values['d_gid']; } } } else if ($z_as == 301) { $num = $stats->_statsMarrAge(false, 'M'); $indi=array(); foreach ($num as $values) { - if (!in_array($values['indi'], $indi)) { + if (!in_array($values['d_gid'], $indi)) { fill_ydata(0, floor($values['age']/365.25), 1); $n1++; - $indi[]=$values['indi']; + $indi[]=$values['d_gid']; } } $num = $stats->_statsMarrAge(false, 'F'); $indi=array(); foreach ($num as $values) { - if (!in_array($values['indi'], $indi)) { + if (!in_array($values['d_gid'], $indi)) { fill_ydata(1, floor($values['age']/365.25), 1); $n1++; - $indi[]=$values['indi']; + $indi[]=$values['d_gid']; } } } else { @@ -432,18 +432,18 @@ function agma1() { foreach ($zgrenzen as $boundary) { $num = $stats->_statsMarrAge(false, 'M', $zstart, $boundary); foreach ($num as $values) { - if (!in_array($values['indi'], $indi)) { + if (!in_array($values['d_gid'], $indi)) { fill_ydata($boundary, floor($values['age']/365.25), 1); $n1++; - $indi[]=$values['indi']; + $indi[]=$values['d_gid']; } } $num = $stats->_statsMarrAge(false, 'F', $zstart, $boundary); foreach ($num as $values) { - if (!in_array($values['indi'], $indi)) { + if (!in_array($values['d_gid'], $indi)) { fill_ydata($boundary, floor($values['age']/365.25), 1); $n1++; - $indi[]=$values['indi']; + $indi[]=$values['d_gid']; } } $zstart=$boundary+1; |
