git://git.onelab.eu
/
nodeconfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added proper marking rules
[nodeconfig.git]
/
keys.php
diff --git
a/keys.php
b/keys.php
index
542e2b0
..
eab3167
100755
(executable)
--- a/
keys.php
+++ b/
keys.php
@@
-13,7
+13,7
@@
// Aaron Klingaman <alk@cs.princeton.edu>
// Copyright (C) 2004 The Trustees of Princeton University
//
// Aaron Klingaman <alk@cs.princeton.edu>
// Copyright (C) 2004 The Trustees of Princeton University
//
-// $Id
: keys.php,v 1.2 2006/11/09 20:21:43 mlhuang Exp
$
+// $Id$
//
// Get admin API handle
//
// Get admin API handle
@@
-67,16
+67,17
@@
if (isset($_REQUEST['root'])) {
if (!empty($persons)) {
$key_ids = array();
foreach ($persons as $person) {
if (!empty($persons)) {
$key_ids = array();
foreach ($persons as $person) {
- $key_ids[] = $person['key_ids'][0];
+ if ($person['key_ids']) {
+ $key_ids[] = $person['key_ids'][0];
+ }
}
}
-
if (!empty($key_ids)) {
$keys = $adm->GetKeys($key_ids);
}
}
foreach ($keys as $key) {
if (!empty($key_ids)) {
$keys = $adm->GetKeys($key_ids);
}
}
foreach ($keys as $key) {
- print $key['key'];
+ print $key['key']
. "\n"
;
}
?>
}
?>