]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't call basename on null 17442/head
authorJoas Schilling <coding@schilljs.com>
Tue, 1 Oct 2019 15:30:52 +0000 (17:30 +0200)
committerBackportbot <backportbot-noreply@rullzer.com>
Mon, 7 Oct 2019 12:03:00 +0000 (12:03 +0000)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/workflowengine/lib/Check/FileName.php

index c6afbf7afadf5bebc564589e074426abfb76371a..f775227f71c0bc15751351cb4b4e9fa532015fef 100644 (file)
@@ -59,7 +59,7 @@ class FileName extends AbstractStringCheck {
         * @return string
         */
        protected function getActualValue(): string {
-               return basename($this->path);
+               return $this->path === null ? '' : basename($this->path);
        }
 
        /**