mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
Fixed: PHP notices appear when a post uses an icon that does not exist anymore
PS: that's my first CVS commit in a while, my fingers are crossed git-svn-id: file:///svn/phpbb/trunk@6143 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
9118c5ad83
commit
5ccfc08d09
1 changed files with 3 additions and 1 deletions
|
@ -891,7 +891,9 @@ while ($row = $db->sql_fetchrow($result))
|
|||
'post_edit_time' => $row['post_edit_time'],
|
||||
'post_edit_reason' => $row['post_edit_reason'],
|
||||
'post_edit_user' => $row['post_edit_user'],
|
||||
'icon_id' => $row['icon_id'],
|
||||
|
||||
// Make sure the icon actually exists
|
||||
'icon_id' => (isset($icons[$row['icon_id']]['img'], $icons[$row['icon_id']]['height'], $icons[$row['icon_id']]['width'])) ? $row['icon_id'] : 0,
|
||||
'post_attachment' => $row['post_attachment'],
|
||||
'post_approved' => $row['post_approved'],
|
||||
'post_reported' => $row['post_reported'],
|
||||
|
|
Loading…
Add table
Reference in a new issue