projects
/
irspy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
713149f
)
Eliminate temporary variable.
author
Mike Taylor
<mike@indexdata.com>
Thu, 16 Nov 2006 17:30:25 +0000
(17:30 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Thu, 16 Nov 2006 17:30:25 +0000
(17:30 +0000)
web/htdocs/details/edit.mc
patch
|
blob
|
history
diff --git
a/web/htdocs/details/edit.mc
b/web/htdocs/details/edit.mc
index
917c9f3
..
c1c1abb
100644
(file)
--- a/
web/htdocs/details/edit.mc
+++ b/
web/htdocs/details/edit.mc
@@
-1,4
+1,4
@@
-%# $Id: edit.mc,v 1.17 2006-11-16 17:27:15 mike Exp $
+%# $Id: edit.mc,v 1.18 2006-11-16 17:30:25 mike Exp $
<%args>
$id => undef
</%args>
@@
-11,11
+11,10
@@
if (defined $id && $id ne "") {
# Existing record
my $query = 'rec.id="' . cql_quote($id) . '"';
my $rs = $conn->search(new ZOOM::Query::CQL($query));
- my $n = $rs->size();
- if ($n == 0) {
- $id = undef;
- } else {
+ if ($rs->size() > 0) {
$rec = $rs->record(0);
+ } else {
+ $id = undef;
}
} else {