summaryrefslogtreecommitdiff
path: root/app/Stats.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-09-15 21:14:35 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-09-15 21:14:43 +0100
commit86a617a2e554042fb00d26b59f26ef8a7f9ad694 (patch)
tree0fd4fe1f8d3e119ec1929bb38111f92819486008 /app/Stats.php
parentaa7513f26c6f71faf42e9916f7a4d1da84a41315 (diff)
downloadwebtrees-86a617a2e554042fb00d26b59f26ef8a7f9ad694.tar.gz
webtrees-86a617a2e554042fb00d26b59f26ef8a7f9ad694.tar.bz2
webtrees-86a617a2e554042fb00d26b59f26ef8a7f9ad694.zip
Strict typing error
Diffstat (limited to 'app/Stats.php')
-rw-r--r--app/Stats.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Stats.php b/app/Stats.php
index 3d6c572f51..93828496a4 100644
--- a/app/Stats.php
+++ b/app/Stats.php
@@ -5235,7 +5235,7 @@ class Stats
*/
public function averageChildren(): string
{
- $rows = $this->runSql("SELECT AVG(f_numchil) AS tot FROM `##families` WHERE f_file={$this->tree->getTreeId()}");
+ $rows = (float) $this->runSql("SELECT AVG(f_numchil) AS tot FROM `##families` WHERE f_file={$this->tree->getTreeId()}");
return I18N::number($rows[0]->tot, 2);
}