diff --git a/src/applications/files/document/PhabricatorJupyterDocumentEngine.php b/src/applications/files/document/PhabricatorJupyterDocumentEngine.php index 20474b047b..28ea43718c 100644 --- a/src/applications/files/document/PhabricatorJupyterDocumentEngine.php +++ b/src/applications/files/document/PhabricatorJupyterDocumentEngine.php @@ -323,7 +323,7 @@ final class PhabricatorJupyterDocumentEngine } $nbformat = idx($data, 'nbformat'); - if (!strlen($nbformat)) { + if (!phutil_nonempty_string($nbformat)) { throw new Exception( pht( 'This document is missing an "nbformat" field. Jupyter notebooks '.