Plugin Updates
This commit is contained in:
@@ -408,7 +408,7 @@ class WC_Helper {
|
||||
}
|
||||
|
||||
$filters = array_fill_keys( array_keys( self::get_filters() ), 0 );
|
||||
if ( empty( $subscriptions ) ) {
|
||||
if ( ! is_array( $subscriptions ) || empty( $subscriptions ) ) {
|
||||
return array();
|
||||
}
|
||||
|
||||
@@ -1461,7 +1461,7 @@ class WC_Helper {
|
||||
if ( is_readable( $txt ) ) {
|
||||
$txt = file_get_contents( $txt );
|
||||
$txt = preg_split( '#\s#', $txt );
|
||||
if ( count( $txt ) >= 2 ) {
|
||||
if ( is_array( $txt ) && count( $txt ) >= 2 ) {
|
||||
$header = sprintf( '%d:%s', $txt[0], $txt[1] );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user