mirror of
https://github.com/getgrav/grav.git
synced 2026-05-06 12:06:40 +02:00
Check to prevent error when Grav cannot reach the remote
This commit is contained in:
@@ -27,7 +27,7 @@ class Grav extends AbstractPackageCollection
|
||||
$this->version = isset($this->data['version']) ? $this->data['version'] : '-';
|
||||
$this->date = isset($this->data['date']) ? $this->data['date'] : '-';
|
||||
|
||||
foreach ($this->data['assets'] as $slug => $data) {
|
||||
if (isset($this->data['assets'])) foreach ($this->data['assets'] as $slug => $data) {
|
||||
$this->items[$slug] = new Package($data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user