Small bug(?) in em-shortcode.php
-
When using the shortcode [event post_id”#”] and there is no event found matching the conditions a get PHP notice:
Notice: Undefined variable: return in /wp-content/plugins/events-manager/em-shortcode.php on line 103
The return variable in em_get_event_shortcode() (and other functions) is defined in the if/else statements. If no results are found an undefined variable gets referred.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Small bug(?) in em-shortcode.php’ is closed to new replies.