diff --git a/common/behaviors/ShowImage.php b/common/behaviors/ShowImage.php index 6bac900..41bfbc9 100644 --- a/common/behaviors/ShowImage.php +++ b/common/behaviors/ShowImage.php @@ -8,6 +8,10 @@ use yii\base\Behavior; class ShowImage extends Behavior { function minImg($dir, $width, $height=null){ + if(empty($dir)){ + return $dir; + } + if($width=='original'){ $preg = '/\/(.[^\/]*)$/'; preg_match('/\.(.[^.]*)$/', $dir, $type); diff --git a/frontend/views/performer/_gallery_list_view.php b/frontend/views/performer/_gallery_list_view.php index 268f015..4d9bcdc 100644 --- a/frontend/views/performer/_gallery_list_view.php +++ b/frontend/views/performer/_gallery_list_view.php @@ -11,7 +11,7 @@ -- libgit2 0.21.4