fix notice
This commit is contained in:
parent
920bb92239
commit
8e16766b16
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue