Jump to content

php syntax help


andrew55

Recommended Posts

I found this code here: 

 

https://gist.github.com/gabrielmerovingi/586b80adfca0a29f929b

 

On line 19, there seems to be an error.

In a couple editor’s I’ve tried, that line keeps get highlighted as an error. I've played around with the syntax, but I'm so new to php, I can't get it working. Any suggestions?

Thanks for any help.

Link to comment
https://forums.phpfreaks.com/topic/295393-php-syntax-help/
Share on other sites

It looks like you're missing one of the closing parenthesis. Try

// Only applicable to certain instances
if ( ! in_array( $request['ref'], array(
    'publishing_content', 
    'approved_comment', 
    'new_forum_topic', 
    'new_forum_reply'
) ) ) return $run;
Link to comment
https://forums.phpfreaks.com/topic/295393-php-syntax-help/#findComment-1508677
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.