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:
1eae36b
)
Use a better start time when none is given for a new record
author
Joey Schulze
<joey@infodrom.org>
Wed, 24 Dec 2008 23:55:44 +0000
(23:55 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Wed, 24 Dec 2008 23:55:44 +0000
(23:55 +0000)
src/InfoCon/hwdb/update.wml
patch
|
blob
|
history
diff --git
a/src/InfoCon/hwdb/update.wml
b/src/InfoCon/hwdb/update.wml
index
d08d216
..
6ea1a8c
100644
(file)
--- a/
src/InfoCon/hwdb/update.wml
+++ b/
src/InfoCon/hwdb/update.wml
@@
-131,7
+131,7
@@
function db_select($dbh, $table, $fields, $where) {
if (isset($_POST['startime']) && strlen($_POST['starttime']))
$starttime = "'".addslashes($_POST['starttime'])."'";
else
- $starttime = '
NULL
';
+ $starttime = '
now()
';
if (isset($_POST['endime']) && strlen($_POST['endtime']))
$endtime = "'".addslashes($_POST['endtime'])."'";
else