Commit f9e2f9e7 authored by Leigh Stoller's avatar Leigh Stoller

Minor bug fix.

parent d6b67812
...@@ -429,7 +429,7 @@ if (!$project) { ...@@ -429,7 +429,7 @@ if (!$project) {
$errors["profile_pid"] = "No such project"; $errors["profile_pid"] = "No such project";
} }
# User better be a member. # User better be a member.
if (!ISADMIN() && if (!ISADMIN() && $project &&
(!$project->IsMember($this_user, $isapproved) || !$isapproved)) { (!$project->IsMember($this_user, $isapproved) || !$isapproved)) {
$errors["profile_pid"] = "Illegal project"; $errors["profile_pid"] = "Illegal project";
} }
......
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