Commit 420451b5 authored by Erick Hitter's avatar Erick Hitter
Browse files

Review feedback: return consistent data type

parent 6f24e805
......@@ -245,7 +245,7 @@ class Events_Store extends Singleton {
* Retrieve jobs given a set of parameters
*
* @param array $args
* @return array|false
* @return array
*/
public function get_jobs( $args ) {
global $wpdb;
......@@ -267,7 +267,7 @@ class Events_Store extends Singleton {
if ( is_array( $jobs ) ) {
$jobs = array_map( array( $this, 'format_job' ), $jobs );
} else {
$jobs = false;
$jobs = array();
}
return $jobs;
......
......@@ -92,7 +92,7 @@ function delete_event_by_id( $id, $flush_cache = false ) {
* Retrieve jobs given a set of parameters
*
* @param array $args
* @return array|false
* @return array
*/
function get_events( $args ) {
return Events_Store::instance()->get_jobs( $args );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment