fix notice

This commit is contained in:
leogermani 2018-10-31 17:50:08 -03:00
parent 920bb92239
commit 8e16766b16
1 changed files with 2 additions and 2 deletions

View File

@ -1031,7 +1031,7 @@ class Metadata extends Repository {
}
$total = $wpdb->get_var($total_query);
$number = is_integer($number) && $number >=1 ? $number : $total;
$number = is_integer($args['number']) && $args['number'] >=1 ? $args['number'] : $total;
if( $number < 1){
$pages = 1;
} else {
@ -1092,7 +1092,7 @@ class Metadata extends Repository {
$results = $wpdb->get_col($query);
$total = $wpdb->get_var($total_query);
$number = is_integer($number) && $number >=1 ? $number : $total;
$number = is_integer($args['number']) && $args['number'] >=1 ? $args['number'] : $total;
if( $number < 1){
$pages = 1;
} else {