rabin 5 년 전
부모
커밋
1117ce945f
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/View.php

+ 2 - 0
src/View.php

@@ -42,6 +42,8 @@ class View
                 $data['ratio'] = $this->ratio('x', $data['wh']);
             } elseif (strstr($data['wh'], 'X')) {
                 $data['ratio'] = $this->ratio('X', $data['wh']);
+            } else {
+                $data['ratio'] = 1;
             }
         }
         $data['search_cate'] = 1;