From 61bd6288787a4bfaeaa93b3bbc211d52e11ff35d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 21 Jan 2013 11:53:03 +0100 Subject: [PATCH] =?utf8?q?Boolesche=20Funktionen=20("is=5F...")=20auch=20b?= =?utf8?q?oolesche=20Werte=20zur=C3=BCckgeben=20lassen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Ansonsten sind Vergleiche nervig: $a->is_ales == $b->is_sales --- SL/DB/Order.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DB/Order.pm b/SL/DB/Order.pm index b23e1da82..ae5c5045d 100644 --- a/SL/DB/Order.pm +++ b/SL/DB/Order.pm @@ -69,7 +69,7 @@ sub displayable_type { sub is_sales { croak 'not an accessor' if @_ > 1; - return shift->customer_id; + return !!shift->customer_id; } sub invoices { -- 2.20.1