fix nasty php error

This commit is contained in:
Uwe Steinmann 2023-02-28 10:44:25 +01:00
parent df6a2e79bc
commit 737e69876d

View File

@ -380,7 +380,7 @@ function utf8_basename($path, $suffix='') { /* {{{ */
* @return string valid file name * @return string valid file name
*/ */
function getFilenameByDocname($content) { /* {{{ */ function getFilenameByDocname($content) { /* {{{ */
if(is_string) { if(is_string($content)) {
$filename = $content; $filename = $content;
} else { } else {
$document = $content->getDocument(); $document = $content->getDocument();