mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-27 08:36:51 +01:00 
			
		
		
		
	Fixed Global Searching
This commit is contained in:
		
							parent
							
								
									133c1a511f
								
							
						
					
					
						commit
						760649a67d
					
				| @ -143,6 +143,16 @@ class File extends Model | ||||
|                 throw new Exception($contents['error']); | ||||
|             } | ||||
| 
 | ||||
|             // No files found, for example
 | ||||
|             if (isset($contents['message'])) { | ||||
|                 Notification::make() | ||||
|                     ->title($contents['message']) | ||||
|                     ->warning() | ||||
|                     ->send(); | ||||
| 
 | ||||
|                 return []; | ||||
|             } | ||||
| 
 | ||||
|             return array_map(function ($file) { | ||||
|                 return [ | ||||
|                     'name' => $file['name'], | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Vehikl
						Vehikl