}
);
-if ( $query->param('action') eq 'addItem' ) {
+if ( defined $query->param('action') and
+ $query->param('action') eq 'addItem' ) {
## Add the given item to the collection
my $colId = $query->param('colId');
my $barcode = $query->param('barcode');
}
my ( $colId, $colTitle, $colDescription, $colBranchcode ) =
- GetCollection( $query->param('colId') );
+ GetCollection( scalar $query->param('colId') );
my $collectionItems = GetItemsInCollection($colId);
if ($collectionItems) {
$template->param( collectionItemsLoop => $collectionItems );