mirror of
https://github.com/e107inc/e107.git
synced 2025-05-07 12:45:25 +02:00
PHP notice fix
This commit is contained in:
parent
d6afec8de9
commit
584d664007
@ -99,6 +99,7 @@ class plugin_forum_view_shortcodes extends e_shortcode
|
|||||||
$baseDir = $this->forum->getAttachmentPath($this->postInfo['post_user']);
|
$baseDir = $this->forum->getAttachmentPath($this->postInfo['post_user']);
|
||||||
|
|
||||||
$images = array();
|
$images = array();
|
||||||
|
$txt = '';
|
||||||
|
|
||||||
$attachArray = e107::unserialize($this->postInfo['post_attachments']);
|
$attachArray = e107::unserialize($this->postInfo['post_attachments']);
|
||||||
//print_a($attachArray);
|
//print_a($attachArray);
|
||||||
@ -113,7 +114,7 @@ class plugin_forum_view_shortcodes extends e_shortcode
|
|||||||
case 'file':
|
case 'file':
|
||||||
|
|
||||||
$url = e_SELF."?id=".$this->postInfo['post_id']."&dl=".$key;
|
$url = e_SELF."?id=".$this->postInfo['post_id']."&dl=".$key;
|
||||||
$txt = IMAGE_attachment." <a href='".$url."'>{$name}</a><br />";
|
$txt .= IMAGE_attachment." <a href='".$url."'>{$name}</a><br />";
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user