Minor fixes
This commit is contained in:
@@ -181,13 +181,16 @@ class Photo extends Abstracted\Catalog
|
||||
|
||||
public function setMakeModel()
|
||||
{
|
||||
$ma = Make::firstOrCreate([
|
||||
'name'=>$this->property('exif:Make') ?: NULL,
|
||||
]);
|
||||
$ma = NULL;
|
||||
|
||||
if ($this->property('exif:Make'))
|
||||
$ma = Make::firstOrCreate([
|
||||
'name'=>$this->property('exif:Make'),
|
||||
]);
|
||||
|
||||
$mo = Model::firstOrCreate([
|
||||
'name'=>$this->property('exif:Model') ?: NULL,
|
||||
'make_id'=>$ma->id,
|
||||
'make_id'=>$ma ? $ma->id : NULL,
|
||||
]);
|
||||
|
||||
$so = Software::firstOrCreate([
|
||||
|
Reference in New Issue
Block a user