Title: em-events.php bug report
Last modified: August 22, 2016

---

# em-events.php bug report

 *  Resolved [moisescalzo](https://wordpress.org/support/users/moisescalzo/)
 * (@moisescalzo)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/em-eventsphp-bug-report/)
 * Hello,
    just report a bug found on em-events.php line 36…on calling static methos
   EM_Events::get and passing an array of selected events the rusult is null because
   on this foreach:
 *     ```
       foreach ( $results as $result ) {
       				echo '<pre>'; print_r($result); echo '</pre>';
       				$events[ $result['event_id'] ] = new EM_Event( $result );
       			}
       ```
   
 * thank you
    Moise
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/em-eventsphp-bug-report/#post-5949170)
 * can I know what is your current EM version please?
 *  Thread Starter [moisescalzo](https://wordpress.org/support/users/moisescalzo/)
 * (@moisescalzo)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/em-eventsphp-bug-report/#post-5949173)
 * Hello…
    Version 5.5.5
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/em-eventsphp-bug-report/#post-5949205)
 * Are you seeing an error message related to this?
 *  Thread Starter [moisescalzo](https://wordpress.org/support/users/moisescalzo/)
 * (@moisescalzo)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/em-eventsphp-bug-report/#post-5949206)
 * Hello,
    no errors, but on calling this EM_Events::get and passing a numeric array
   like array(25, 30) it return an empty result.
 * the complete code used is
 * `EM_Events::get( array(25, 30 ) );`
 * my actual work around is:
 *     ```
       foreach ( $args as $ID ) {
   
       				$this->events[] = new EM_Event( $ID );
       			}
       ```
   
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/em-eventsphp-bug-report/#post-5949225)
 * maybe you can try something like `EM_Events::get( array('event' => '25,30') );`
 * [http://wp-events-plugin.com/documentation/advanced-usage/](http://wp-events-plugin.com/documentation/advanced-usage/)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘em-events.php bug report’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/em-eventsphp-bug-report/#post-5949225)
 * Status: resolved