diff --git a/src/applications/legalpad/xaction/LegalpadDocumentTitleTransaction.php b/src/applications/legalpad/xaction/LegalpadDocumentTitleTransaction.php index 725f4f4d4c..530bb7e101 100644 --- a/src/applications/legalpad/xaction/LegalpadDocumentTitleTransaction.php +++ b/src/applications/legalpad/xaction/LegalpadDocumentTitleTransaction.php @@ -19,7 +19,7 @@ final class LegalpadDocumentTitleTransaction public function getTitle() { $old = $this->getOldValue(); - if (!strlen($old)) { + if (!phutil_nonempty_string($old)) { return pht( '%s created this document.', $this->renderAuthor()); @@ -35,7 +35,7 @@ final class LegalpadDocumentTitleTransaction public function getTitleForFeed() { $old = $this->getOldValue(); - if (!strlen($old)) { + if (!phutil_nonempty_string($old)) { return pht( '%s created %s.', $this->renderAuthor(),