확장변수 파일 삭제 불가 문제 수정

Call to a member function toBool() on null
This commit is contained in:
dewekk 2024-12-10 13:37:57 +09:00 committed by GitHub
parent 6e5ee53ea3
commit 5502df5b81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1269,7 +1269,7 @@ class DocumentController extends Document
{
// Check if deletion is allowed
$ev_output = $extra_item->validate(null);
if (!$ev_output->toBool())
if ($ev_output && !$ev_output->toBool())
{
$oDB->rollback();
return $ev_output;