Bug 31383: (QA follow-up) Do not return 0 in ->get

The last statement evaluated is the if( $content->count ).
If that evaluates to false, the false expression value is returned.
In this case that is 0.
We should just return undef or empty list (scalar/list context).

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Marcel de Rooy 2023-06-21 11:48:27 +00:00 committed by Tomas Cohen Arazi
parent a072b5305e
commit 772337f525
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -53,6 +53,7 @@ sub get {
blocktitle => $blocktitle
};
}
return;
}
sub get_opac_news_by_id {