mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +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
|
* @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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user