Skip to content

Commit

Permalink
Merge pull request TechnicPack#461 from EntranceJew/bugfix-check-modv…
Browse files Browse the repository at this point in the history
…ersions-empty

Corrected the check to see if a mod had any versions.
  • Loading branch information
GenPage committed Sep 16, 2015
2 parents 6e78430 + bfe1039 commit 6a261d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/mod/list.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
{{ HTML::link('mod/view/'.$mod->id, $mod->name) }}
@endif
<br/>
<b>Latest Version:</b> {{ !empty($mod->versions) ? $mod->versions->first()->version : "N/A" }}
<b>Latest Version:</b> {{ !$mod->versions->isEmpty() ? $mod->versions->first()->version : "N/A" }}
</td>
<td>{{ !empty($mod->author) ? $mod->author : "N/A" }}</td>
<td>{{ !empty($mod->link) ? HTML::link($mod->link, $mod->link, array("target" => "_blank")) : "N/A" }}</td>
Expand Down

0 comments on commit 6a261d0

Please sign in to comment.