summaryrefslogtreecommitdiff
path: root/app/Services/ChartService.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-10-18 17:00:02 +0100
committerGreg Roach <fisharebest@webtrees.net>2019-10-18 20:17:27 +0100
commit54c1ab5ea4e2eb9e21dbacd6aa33a0f25550ac18 (patch)
treecc3ab05ee8aff7a608dd98ce1ce94f8b6e25d89f /app/Services/ChartService.php
parent5e23c3aac3e1192517df1f4306164b3f5fcfca67 (diff)
downloadwebtrees-54c1ab5ea4e2eb9e21dbacd6aa33a0f25550ac18.tar.gz
webtrees-54c1ab5ea4e2eb9e21dbacd6aa33a0f25550ac18.tar.bz2
webtrees-54c1ab5ea4e2eb9e21dbacd6aa33a0f25550ac18.zip
Avoid empty(), as it can be unpredicatable
Diffstat (limited to 'app/Services/ChartService.php')
-rw-r--r--app/Services/ChartService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Services/ChartService.php b/app/Services/ChartService.php
index 480a221ed7..03a70eaccf 100644
--- a/app/Services/ChartService.php
+++ b/app/Services/ChartService.php
@@ -44,7 +44,7 @@ class ChartService
$max = 2 ** ($generations - 1);
- while (!empty($queue)) {
+ while ($queue !== []) {
$sosa_stradonitz_number = array_shift($queue);
if ($sosa_stradonitz_number >= $max) {