https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24745

--- Comment #8 from Marcel de Rooy <[email protected]> ---
(In reply to Owen Leonard from comment #7)
> (In reply to Marcel de Rooy from comment #6)
> > Wouldnt it be better to return undef or empty string in case of template 
> > use?
> > If it is concatenated somewhere, we get a 0 in between ?
> 
> Returning undef triggered this error in the QA tool:
> 
> "# Subroutines::ProhibitExplicitReturnUndef: Got 1 violation(s)."

This has to do with syntax. You should not write "return undef" but you write
"return;". In scalar context you return undef, in list context empty list.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to