From 384408326f754a823d4f0170cde38400de3d2d83 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 19 Oct 2009 17:26:19 +0200 Subject: [PATCH] strictness --- SL/Drafts.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SL/Drafts.pm b/SL/Drafts.pm index 44088994b..49c7fcde2 100644 --- a/SL/Drafts.pm +++ b/SL/Drafts.pm @@ -14,6 +14,8 @@ use YAML; use SL::Common; use SL::DBUtils; +use strict; + sub get_module { $main::lxdebug->enter_sub(); @@ -34,7 +36,7 @@ sub get_module { return ($module, $submodule); } -@dont_save = qw(login password stylesheet action); +my @dont_save = qw(login password stylesheet action); sub save { $main::lxdebug->enter_sub(); @@ -91,7 +93,6 @@ sub load { $sth = prepare_execute_query($form, $dbh, $query, $draft_id); - my @values; if (my $ref = $sth->fetchrow_hashref()) { @values = ($ref->{form}, $ref->{id}, $ref->{description}); } @@ -142,7 +143,7 @@ sub list { qq|LEFT JOIN employee e ON d.employee_id = e.id | . qq|WHERE (d.module = ?) AND (d.submodule = ?) | . qq|ORDER BY d.itime|; - my @values = ($module, $submodule); + @values = ($module, $submodule); $sth = prepare_execute_query($form, $dbh, $query, @values); -- 2.20.1