This topic was marked solved by its starter, on December 28th, 2012, 04:12 PM
Unapproved posts gives error message

Farjo

  • "a valuable asset to the community"
  • Posts: 492
Unapproved posts gives error message
« 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.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Unapproved posts gives error message
« Reply #1, 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'];
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Farjo

  • "a valuable asset to the community"
  • Posts: 492