From 0aa55515f3c2cdce122dda325f48c9a3cb6a600a Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 25 Oct 2010 16:29:03 +0200 Subject: [PATCH] Flexiblere Verwendung von get_first --- SL/DB/Helper/Manager.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/SL/DB/Helper/Manager.pm b/SL/DB/Helper/Manager.pm index 529053338..8ebc362e2 100644 --- a/SL/DB/Helper/Manager.pm +++ b/SL/DB/Helper/Manager.pm @@ -20,6 +20,7 @@ sub find_by { sub get_first { shift->get_all( + @_, limit => 1, )->[0]; } -- 2.20.1