update
This commit is contained in:
@@ -918,7 +918,12 @@ class Products
|
||||
$client_id = \S::get( 'client_id' );
|
||||
$campaign_id = (int) \S::get( 'campaign_id' );
|
||||
$ad_group_id = (int) \S::get( 'ad_group_id' );
|
||||
$limit = \S::get( 'length' ) ? \S::get( 'length' ) : 10;
|
||||
$allowed_limits = [ 10, 25, 50, 100 ];
|
||||
$limit = (int) \S::get( 'length' );
|
||||
if ( !in_array( $limit, $allowed_limits, true ) )
|
||||
{
|
||||
$limit = 25;
|
||||
}
|
||||
$start = \S::get( 'start' ) ? \S::get( 'start' ) : 0;
|
||||
|
||||
$order_dir = $_POST['order'][0]['dir'] ? strtoupper( $_POST['order'][0]['dir'] ) : 'DESC';
|
||||
|
||||
Reference in New Issue
Block a user