[Koha-bugs] [Bug 24745] OPAC news block plugin should evaluate as false if there are no items

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 6 09:53:05 CET 2020


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

Marcel de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |m.de.rooy at rijksmuseum.nl

--- Comment #6 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
+    } else {
+        return 0;
+    }

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 ?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list