Skip to content

Commit

Permalink
Remove undefind variable, let getKeyImage figure out the right style
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuck Hagenbuch authored and mrubinsk committed Sep 7, 2015
1 parent 0c46439 commit acb957a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansel/lib/Gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ protected function _getDefaultImageId()
->listGalleries(array('parent' => $this->id, 'all_levels' => false));

foreach ($galleries as $gallery) {
if ($default_img = $gallery->getKeyImage($style)) {
if ($default_img = $gallery->getKeyImage()) {
return $default_img;
}
}
Expand Down

0 comments on commit acb957a

Please sign in to comment.