andrew55 Posted April 10, 2015 Share Posted April 10, 2015 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 More sharing options...
cyberRobot Posted April 10, 2015 Share Posted April 10, 2015 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 More sharing options...
andrew55 Posted April 12, 2015 Author Share Posted April 12, 2015 I should have seen this. Thank you. Link to comment https://forums.phpfreaks.com/topic/295393-php-syntax-help/#findComment-1508852 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.