Permalink
Browse files

Get rid of undefined warnings.

  • Loading branch information...
1 parent 538a222 commit 439524f5c47139d7ec3768cdd58c5af54cf091af @denny committed Jul 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ShinyCMS/Controller/Shop.pm
@@ -207,7 +207,7 @@ sub get_recent_items {
page => $page,
rows => $count,
};
- if ( $order_by eq 'updated' or $order_by eq 'added' ) {
+ if ( $order_by and ( $order_by eq 'updated' or $order_by eq 'added' ) ) {
$options->{ order_by } = { -desc => $order_by };
}
else {

0 comments on commit 439524f

Please sign in to comment.