Skip to content

Commit

Permalink
[ticket/16037] Fix UCP PM ViewFolder PHP Notice error
Browse files Browse the repository at this point in the history
PHPBB3-16037
  • Loading branch information
iMattPro committed Apr 30, 2019
1 parent 055d765 commit 70b7777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpBB/includes/ucp/ucp_pm_viewfolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ function view_folder($id, $mode, $folder_id, $folder)
$row_indicator = '';
foreach ($color_rows as $var)
{
if (($var != 'friend' && $var != 'foe' && $row['pm_' . $var])
if (($var !== 'friend' && $var !== 'foe' && $row[($var === 'message_reported') ? $var : "pm_{$var}"])
||
(($var == 'friend' || $var == 'foe') && isset(${$var}[$row['author_id']]) && ${$var}[$row['author_id']]))
(($var === 'friend' || $var === 'foe') && isset(${$var}[$row['author_id']]) && ${$var}[$row['author_id']]))
{
$row_indicator = $var;
break;
Expand Down

0 comments on commit 70b7777

Please sign in to comment.