Minor PHP 5 compatibility

This commit is contained in:
Nabil Kadimi
2018-09-13 17:31:55 +01:00
committed by GitHub
parent 4acfcc62e0
commit 88e9491e2c

View File

@@ -579,7 +579,7 @@ class SP_Event extends SP_Custom_Post{
$appointments = array();
foreach ( $duties as $duty ) {
$duty_appointments = sp_array_value( $officials, $duty->term_id, [] );
$duty_appointments = sp_array_value( $officials, $duty->term_id, array() );
if ( ! $include_empty && empty( $duty_appointments ) ) continue;