aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Sse.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-05-14 08:56:06 +0000
committerMario <mario@mariovavti.com>2021-05-14 08:56:06 +0000
commita03423794a1a9dc15588d40684fee3bf9a57b629 (patch)
tree072ef73577b3ecefcc85f26c7db41166ffbd3d49 /Zotlabs/Module/Sse.php
parentf085c3c98f834bc4e3906c456f1447de2e955118 (diff)
downloadvolse-hubzilla-a03423794a1a9dc15588d40684fee3bf9a57b629.tar.gz
volse-hubzilla-a03423794a1a9dc15588d40684fee3bf9a57b629.tar.bz2
volse-hubzilla-a03423794a1a9dc15588d40684fee3bf9a57b629.zip
Random PHP 8 fixes
Diffstat (limited to 'Zotlabs/Module/Sse.php')
-rw-r--r--Zotlabs/Module/Sse.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Sse.php b/Zotlabs/Module/Sse.php
index 8bea65207..6f3df299f 100644
--- a/Zotlabs/Module/Sse.php
+++ b/Zotlabs/Module/Sse.php
@@ -108,7 +108,8 @@ class Sse extends Controller {
echo 'data: {}';
echo "\n\n";
- ob_end_flush();
+ if(ob_get_length() > 0)
+ ob_end_flush();
flush();
if(connection_status() != CONNECTION_NORMAL || connection_aborted()) {