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:
f37ca02
)
If it's empty, it's set as well *sigh*
author
Joey Schulze
<joey@infodrom.org>
Thu, 1 May 2008 09:48:13 +0000
(09:48 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Thu, 1 May 2008 09:48:13 +0000
(09:48 +0000)
src/InfoCon/hwdb/update.wml
patch
|
blob
|
history
diff --git
a/src/InfoCon/hwdb/update.wml
b/src/InfoCon/hwdb/update.wml
index
5488dd6
..
a78b8e5
100644
(file)
--- a/
src/InfoCon/hwdb/update.wml
+++ b/
src/InfoCon/hwdb/update.wml
@@
-53,7
+53,7
@@
$sth = pg_exec ($dbh, $query) or die_query("Cannot update the database!", $query);
} elseif ($_POST[formtype] == "component") {
pg_exec($dbh, "BEGIN TRANSACTION") or die ("Could not start transaction.");
- if (isset($_POST[endtime])) {
+ if (isset($_POST[endtime])
&& strlen($_POST[endtime])
) {
$endtime = "'".addslashes($_POST[endtime])."'";
} else {
if ($_POST['status'] == 'defunct') {