Importexport: Avoid error from push when running scheduled import/export

This commit is contained in:
nathan 2024-01-05 11:56:54 -07:00
parent 52b48140fe
commit 3a037c970c

View File

@ -414,8 +414,9 @@ use EGroupware\Api\Etemplate;
* @throws Api\Json\Exception * @throws Api\Json\Exception
*/ */
public static function sendUpdate($complete, $label = '', $log = '') 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); error_log($complete . "% $label\t" . $log);
return; return;