Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Get rid of undefined warnings.

  • Loading branch information...
commit 439524f5c47139d7ec3768cdd58c5af54cf091af 1 parent 538a222
@denny authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/ShinyCMS/Controller/Shop.pm
View
2  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 {
Please sign in to comment.
Something went wrong with that request. Please try again.