Change tag routines, articles saving is ok
This commit is contained in:
@@ -79,11 +79,15 @@ class Varieties
|
||||
public static function getImages($id)
|
||||
{
|
||||
$variety = self::get($id);
|
||||
$variety->getMedia();
|
||||
foreach ($variety->media as $key => $media) {
|
||||
$variety->media[$key]['url'] = $media->getUrl();
|
||||
if ($variety) {
|
||||
$variety->getMedia();
|
||||
foreach ($variety->media as $key => $media) {
|
||||
$variety->media[$key]['url'] = $media->getUrl();
|
||||
}
|
||||
return $variety->media;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return $variety->media;
|
||||
}
|
||||
|
||||
public static function deleteImage($id, $index)
|
||||
|
||||
Reference in New Issue
Block a user