summaryrefslogtreecommitdiff
path: root/app/Stats.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-08-19 17:21:53 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-08-19 20:11:50 +0100
commit59f2f229057fe08ec1b09bd435699190641eed6a (patch)
treeedae798c5680447a9cb156d2eb1501b7b8079fa7 /app/Stats.php
parentac1dac2987a776a9b2f5335b448bfce186831f31 (diff)
downloadwebtrees-59f2f229057fe08ec1b09bd435699190641eed6a.tar.gz
webtrees-59f2f229057fe08ec1b09bd435699190641eed6a.tar.bz2
webtrees-59f2f229057fe08ec1b09bd435699190641eed6a.zip
CodeStyle
Diffstat (limited to 'app/Stats.php')
-rw-r--r--app/Stats.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/app/Stats.php b/app/Stats.php
index 769a1a7b11..2a9d611ac8 100644
--- a/app/Stats.php
+++ b/app/Stats.php
@@ -3470,9 +3470,6 @@ class Stats
" GROUP BY family" .
" ORDER BY age {$age_dir}"
);
- if (!isset($hrows) && !isset($wrows) && !isset($drows)) {
- return '';
- }
$rows = [];
foreach ($drows as $family) {
$rows[$family->family] = $family->age;
@@ -3775,9 +3772,7 @@ class Stats
$sql .= " GROUP BY d_month";
}
$rows = $this->runSql($sql);
- if (!isset($rows)) {
- return '';
- }
+
if ($simple) {
if (isset($params[0]) && $params[0] != '') {
$size = strtolower($params[0]);
@@ -3873,9 +3868,7 @@ class Stats
$sql .= " GROUP BY d_month";
}
$rows = $this->runSql($sql);
- if (!isset($rows)) {
- return '';
- }
+
if ($simple) {
if (isset($params[0]) && $params[0] != '') {
$size = strtolower($params[0]);