aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-06-23 09:24:10 +0000
committerMario <mario@mariovavti.com>2025-06-23 09:24:10 +0000
commitaeb54655a01a60c2478518ff813d89447746baea (patch)
tree69b0d240fcf2ba7cf2ffdc198c9da91265be07ea /include
parent1a3ca49eba1c8f1630d7e1d0a1845bd0b2a1decf (diff)
downloadvolse-hubzilla-aeb54655a01a60c2478518ff813d89447746baea.tar.gz
volse-hubzilla-aeb54655a01a60c2478518ff813d89447746baea.tar.bz2
volse-hubzilla-aeb54655a01a60c2478518ff813d89447746baea.zip
exit if we have not found anything
Diffstat (limited to 'include')
-rw-r--r--include/items.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 9e448e39a..6dd214bec 100644
--- a/include/items.php
+++ b/include/items.php
@@ -5761,8 +5761,13 @@ function get_recursive_thr_parents(array $item): array|null
dbesc($mid)
);
+ if (!$x) {
+ break;
+ }
+
$mid = $x[0]['thr_parent'];
$thr_parents[] = $x[0]['thr_parent'];
+
$i++;
}