From ed4a4688975f42543ef44de215d002f8ced6fe75 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 22 Aug 2024 09:02:31 +0800 Subject: [PATCH] * [task#126735,done,0.3h] fix webhook log error. --- module/webhook/tao.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/webhook/tao.php b/module/webhook/tao.php index 398eb93689..a518c83d29 100644 --- a/module/webhook/tao.php +++ b/module/webhook/tao.php @@ -122,7 +122,7 @@ class webhookTao extends webhookModel } elseif(isset($data->content)) { - $text = $data->content->text; + $text = empty($data->content->text) ? '' : $data->content->text; $text = substr($text, 0, strpos($text, '(http')) ? substr($text, 0, strpos($text, '(http')) : zget($users, $data->user, $this->app->user->realname) . $this->lang->action->label->{$action->action} . $this->lang->action->objectTypes[$action->objectType] . "[#{$action->objectID}::{$object->$field}]"; } else