From 3a037c970c0cfc738904efaf02e691b903c58533 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 5 Jan 2024 11:56:54 -0700 Subject: [PATCH] Importexport: Avoid error from push when running scheduled import/export --- importexport/inc/class.importexport_import_ui.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/importexport/inc/class.importexport_import_ui.inc.php b/importexport/inc/class.importexport_import_ui.inc.php index 77c2a713f7..1dc1f5fb78 100644 --- a/importexport/inc/class.importexport_import_ui.inc.php +++ b/importexport/inc/class.importexport_import_ui.inc.php @@ -414,8 +414,9 @@ use EGroupware\Api\Etemplate; * @throws Api\Json\Exception */ public static function sendUpdate($complete, $label = '', $log = '') - { // No real push, no updates - if(EGroupware\Api\Json\Push::onlyFallback()) + { + // No real push, no updates + if(EGroupware\Api\Json\Push::onlyFallback() || !\EGroupware\Api\Json\Request::isJSONRequest()) { error_log($complete . "% $label\t" . $log); return;