mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
fix nasty php error
This commit is contained in:
parent
df6a2e79bc
commit
737e69876d
|
@ -380,7 +380,7 @@ function utf8_basename($path, $suffix='') { /* {{{ */
|
|||
* @return string valid file name
|
||||
*/
|
||||
function getFilenameByDocname($content) { /* {{{ */
|
||||
if(is_string) {
|
||||
if(is_string($content)) {
|
||||
$filename = $content;
|
||||
} else {
|
||||
$document = $content->getDocument();
|
||||
|
|
Loading…
Reference in New Issue
Block a user