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

Minor bug fix.

parent 9adbd0d1
......@@ -138,8 +138,9 @@ if (isset($profile)) {
#
$query_result =
DBQueryFatal("select * from apt_profiles ".
"where public=1 " .
($this_user ? "or creator_idx=" . $this_user->uid_idx() : ""));
"where locked is null and (public=1 " .
($this_user ? "or creator_idx=" . $this_user->uid_idx() : "").
")");
while ($row = mysql_fetch_array($query_result)) {
$profile_array[$row["uuid"]] = $row["name"];
if ($row["pid"] == $TBOPSPID && $row["name"] == $profile_default) {
......
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