提交 6688a1f5 编写于 作者: D devil_gong

插件管理细节优化

上级 97dd73c0
......@@ -72,13 +72,16 @@ class PluginsService
{
foreach($data as $k=>$v)
{
$ext = strrchr(substr($v, -6), '.');
if($ext !== false)
if(is_string($v) && !empty($v))
{
if(in_array($ext, $attachment_ext))
$ext = strrchr(substr($v, -6), '.');
if($ext !== false)
{
$data[$k.'_old'] = $v;
$data[$k] = ResourcesService::AttachmentPathViewHandle($v);
if(in_array($ext, $attachment_ext))
{
$data[$k.'_old'] = $v;
$data[$k] = ResourcesService::AttachmentPathViewHandle($v);
}
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册