mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-09 22:58:41 +02: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']);
|
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 array_map(function ($file) {
|
||||||
return [
|
return [
|
||||||
'name' => $file['name'],
|
'name' => $file['name'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user