mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Sigh.
This commit is contained in:
parent
290cf79778
commit
c0f791cf13
|
@ -289,10 +289,8 @@ class AssetPresenter extends Presenter
|
||||||
$imagePath = '';
|
$imagePath = '';
|
||||||
if ($this->image && !empty($this->image)) {
|
if ($this->image && !empty($this->image)) {
|
||||||
$imagePath = $this->image;
|
$imagePath = $this->image;
|
||||||
return 'poop';
|
|
||||||
} elseif ($this->model && !empty($this->model->image)) {
|
} elseif ($this->model && !empty($this->model->image)) {
|
||||||
$imagePath = $this->model->image;
|
$imagePath = $this->model->image;
|
||||||
return 'fart';
|
|
||||||
}
|
}
|
||||||
if (!empty($imagePath)) {
|
if (!empty($imagePath)) {
|
||||||
return config('app.url').'/uploads/assets/'.$imagePath;
|
return config('app.url').'/uploads/assets/'.$imagePath;
|
||||||
|
|
Loading…
Reference in a new issue