mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 20:18:33 -05:00 
			
		
		
		
	Improve sort filters
This commit is contained in:
		
							parent
							
								
									df37a488f7
								
							
						
					
					
						commit
						df8f7e1c7c
					
				@ -46,7 +46,7 @@ class WebhookFilters extends QueryFilters
 | 
			
		||||
    {
 | 
			
		||||
        $sort_col = explode('|', $sort);
 | 
			
		||||
 | 
			
		||||
        if (!is_array($sort_col) || count($sort_col) != 2) {
 | 
			
		||||
        if (!is_array($sort_col) || count($sort_col) != 2 || !in_array($sort_col[0], \Illuminate\Support\Facades\Schema::getColumnListing('webhooks'))) {
 | 
			
		||||
            return $this->builder;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user