This commit is contained in:
snipe 2017-11-27 21:35:06 -08:00
parent 290cf79778
commit c0f791cf13

View file

@ -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;