diff options
author | Mario <mario@mariovavti.com> | 2025-06-23 09:24:10 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-06-23 09:24:10 +0000 |
commit | aeb54655a01a60c2478518ff813d89447746baea (patch) | |
tree | 69b0d240fcf2ba7cf2ffdc198c9da91265be07ea /include | |
parent | 1a3ca49eba1c8f1630d7e1d0a1845bd0b2a1decf (diff) | |
download | volse-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.php | 5 |
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++; } |