diff options
| author | fisharebest <fisharebest@gmail.com> | 2013-07-07 20:44:36 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2013-07-07 20:44:36 +0000 |
| commit | b56302d1accee6ccfb31233fe11b65d2bbb0f2a0 (patch) | |
| tree | 0a15856bba01085c12753fb3b3e1e8928213bc6a | |
| parent | f21ca08c87382ebc6f966b227389e8637ba4b12d (diff) | |
| download | webtrees-b56302d1accee6ccfb31233fe11b65d2bbb0f2a0.tar.gz webtrees-b56302d1accee6ccfb31233fe11b65d2bbb0f2a0.tar.bz2 webtrees-b56302d1accee6ccfb31233fe11b65d2bbb0f2a0.zip | |
Fanchart - one-parent families cause PHP error
| -rw-r--r-- | library/WT/Controller/Fanchart.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/WT/Controller/Fanchart.php b/library/WT/Controller/Fanchart.php index 2eccce80f5..c841dddad7 100644 --- a/library/WT/Controller/Fanchart.php +++ b/library/WT/Controller/Fanchart.php @@ -209,11 +209,11 @@ class WT_Controller_Fanchart extends WT_Controller_Chart { // draw each cell while ($sosa >= $p2) { - $pid=$treeid[$sosa]; - if ($pid) { - $person =WT_Individual::getInstance($pid); - $name =$person->getFullName(); - $addname=$person->getAddName(); + $pid = $treeid[$sosa]; + $person = WT_Individual::getInstance($pid); + if ($person) { + $name = $person->getFullName(); + $addname = $person->getAddName(); switch($person->getSex()) { case 'M': |
