Some photo management fixes
This commit is contained in:
@@ -115,14 +115,17 @@ abstract class Catalog extends Model
|
||||
{
|
||||
$result = '';
|
||||
|
||||
if ($this->software->model->make)
|
||||
$result .= $this->software->model->make->name;
|
||||
if ($this->software_id) {
|
||||
if ($this->software->model_id) {
|
||||
if ($this->software->model->make_id) {
|
||||
$result .= $this->software->model->make->name;
|
||||
}
|
||||
|
||||
if ($this->software->model)
|
||||
$result .= ($result ? ' ' : '').$this->software->model->name;
|
||||
$result .= ($result ? ' ' : '').$this->software->model->name;
|
||||
}
|
||||
|
||||
if ($this->software)
|
||||
$result .= ($result ? ' ' : '').$this->software->name;
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user