summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Bellinson <thread@gentoo.org>2001-07-30 22:17:21 +0000
committerAdam Bellinson <thread@gentoo.org>2001-07-30 22:17:21 +0000
commitaee47624cfaa14d7e255da8d05b6a82071dfbffa (patch)
treecd6965f85b2696f9a9db12716066210ee01d6f8e /app-doc
parentAdded detailed dependencies (glibc, gcc etc.) (diff)
downloadgentoo-2-aee47624cfaa14d7e255da8d05b6a82071dfbffa.tar.gz
gentoo-2-aee47624cfaa14d7e255da8d05b6a82071dfbffa.tar.bz2
gentoo-2-aee47624cfaa14d7e255da8d05b6a82071dfbffa.zip
*** empty log message ***
Diffstat (limited to 'app-doc')
-rw-r--r--app-doc/gentoo-web/files/wiki/teamedit.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/app-doc/gentoo-web/files/wiki/teamedit.php b/app-doc/gentoo-web/files/wiki/teamedit.php
index 443dedda19ac..0c301bddbd81 100644
--- a/app-doc/gentoo-web/files/wiki/teamedit.php
+++ b/app-doc/gentoo-web/files/wiki/teamedit.php
@@ -19,7 +19,9 @@ while ( $each = each($leaders) ) {
break;
}
}
-if ( !$name ) {
+$admin = mysql_query( "select admin from users where uid=$uid" );
+list( $admin ) = mysql_fetch_row( $admin );
+if ( !($name || $admin) ) {
print '<p style="color:red;">You aren\'t the leader of that team!</p>';
main_footer();
exit;
@@ -31,7 +33,7 @@ if ( $summary || $status ) {
print '<p style="color:red;">Change(s) committed.</p>';
}
-$info = mysql_query( "select summary,status from teams where gid=$num" );
+$info = mysql_query( "select summary,status from teams where gid=$gid" );
list( $summary, $status ) = mysql_fetch_row( $info );
?>