PHP code error in Mailer Dragon
-
I decided to install the “Catalog Newsletter” from the Extensions list. Installation went fine but when I tried to activate it I got this message:
Parse error: syntax error, unexpected ‘&&’ (T_BOOLEAN_AND), expecting ‘)’ in /var/www/vhosts/mysite.co.uk/wp-content/plugins/mailer-dragon/functions/shortcodes.php on line 34
Turns out this line :
if ( !empty( $post_type && !empty( $post_id ) ) ) {should be :
if ( !empty( $post_type ) && !empty( $post_id ) ) {Once I changed that it activated just fine.
FYI
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘PHP code error in Mailer Dragon’ is closed to new replies.