@@ -121,8 +121,9 @@ |
||
| 121 | 121 | ->first(); |
| 122 | 122 | |
| 123 | 123 | // Abort if there is no source, or it has no tags |
| 124 | - if (!$post || (!$tagIds = $post->tags->lists('id'))) |
|
| 125 | - return; |
|
| 124 | + if (!$post || (!$tagIds = $post->tags->lists('id'))) { |
|
| 125 | + return; |
|
| 126 | + } |
|
| 126 | 127 | |
| 127 | 128 | // Start building our query for related posts |
| 128 | 129 | $query = Post::isPublished() |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | * |
| 87 | 87 | * @var array |
| 88 | 88 | */ |
| 89 | - public static $sortingOptions = [ |
|
| 89 | + public static $sortingOptions = [ |
|
| 90 | 90 | 'name asc' => Plugin::LOCALIZATION_KEY . 'order_options.name_asc', |
| 91 | 91 | 'name desc' => Plugin::LOCALIZATION_KEY . 'order_options.name_desc', |
| 92 | 92 | 'created_at asc' => Plugin::LOCALIZATION_KEY . 'order_options.created_at_asc', |