projects
/
koha-ffzg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b2e175
)
getalert - do not generate bad SQL for borrowernumber=0
author
Galen Charlton
<galen.charlton@liblime.com>
Sat, 16 Feb 2008 02:01:11 +0000
(15:01 +1300)
committer
Joshua Ferraro
<jmf@liblime.com>
Sat, 16 Feb 2008 17:29:16 +0000
(11:29 -0600)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Letters.pm
patch
|
blob
|
history
diff --git
a/C4/Letters.pm
b/C4/Letters.pm
index
07520ed
..
857dc56
100644
(file)
--- a/
C4/Letters.pm
+++ b/
C4/Letters.pm
@@
-175,7
+175,7
@@
sub getalert {
my $dbh = C4::Context->dbh;
my $query = "select * from alert where";
my @bind;
- if ($borrowernumber) {
+ if ($borrowernumber
=~ /^\d+$/
) {
$query .= " borrowernumber=? and";
push @bind, $borrowernumber;
}