projects
/
infodrom.org
/
service.infodrom.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcfddfe
)
Use sprintf so that a non-numeric year will be converted into 0 in
author
Joey Schulze
<joey@infodrom.org>
Thu, 7 Oct 2004 10:55:22 +0000
(10:55 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Thu, 7 Oct 2004 10:55:22 +0000
(10:55 +0000)
order not to create an SQL error.
src/InfoCon/account/list.wml
patch
|
blob
|
history
diff --git
a/src/InfoCon/account/list.wml
b/src/InfoCon/account/list.wml
index
9488a89
..
9fd2e01
100644
(file)
--- a/
src/InfoCon/account/list.wml
+++ b/
src/InfoCon/account/list.wml
@@
-31,9
+31,9
@@
$where[] = "blz_kto = '$blzkto'";
if (strlen($year)) {
- $where[] =
"datum >= '$year-01-01'"
;
+ $where[] =
sprintf ("datum >= '%04d-01-01'", $year)
;
$year++;
- $where[] =
"datum < '$year-01-01'"
;
+ $where[] =
sprintf ("datum < '%04d-01-01'", $year)
;
}
if (strlen($category)) {
$where[] = "category = '$category'";