Wedge

Public area => Bug reports => The Pub => Archived fixes => Topic started by: Farjo on December 28th, 2012, 03:51 PM

Title: Unapproved posts gives error message
Post by: Farjo on December 28th, 2012, 03:51 PM
I cannot believe that I'm the first to notice this but here goes:

Clicking any link to show topics or posts awaiting approval gives this error message:

Code: [Select]
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ']' in /..../Sources/PostModeration.php on line 158

This happens from within the forum or the admin centre.
Title: Re: Unapproved posts gives error message
Post by: Arantor on December 28th, 2012, 04:00 PM
This was fixed in r1787.

Line 158:
Code: [Select]
$details[$anItem]['member'] = $row[$context['current_view'] == 'topics' 'id_member_started' : 'id_member'];

Replace with
Code: [Select]
$details[$anItem]['member'] = $row[$context['current_view'] == 'topics' ? 'id_member_started' : 'id_member'];
Title: Re: Unapproved posts gives error message
Post by: Farjo on December 28th, 2012, 04:12 PM
Yes, that has worked thank you.