Commit e71b22df authored by Leigh B Stoller's avatar Leigh B Stoller

Minor tweak to lastused/usecount.

parent a24565ed
<?php
#
# Copyright (c) 2000-2015 University of Utah and the Flux Group.
# Copyright (c) 2000-2016 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -292,6 +292,9 @@ while (list ($uuid, $title) = each ($profile_array)) {
$tmp = Profile::Lookup($uuid);
if ($tmp) {
list ($lastused, $count) = $tmp->UsageInfo($this_user);
if ($lastused == 0) {
list ($unused, $count) = $tmp->UsageInfo(null);
}
$tmp_array[$uuid] =
array("name" => $tmp->name(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment