Commit d2ada98f authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor fix.

parent 980aa180
<?php
#
# Copyright (c) 2006-2012 University of Utah and the Flux Group.
# Copyright (c) 2006-2013 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -60,7 +60,12 @@ class OSinfo
# Lookup by osname in a project
function LookupByName($project, $name) {
$pid = $project->pid();
if (is_a($project, "Project")) {
$pid = $project->pid();
}
else {
$pid = addslashes($project);
}
$safe_name = addslashes($name);
$query_result =
......
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