diff options
author | Adam Bellinson <thread@gentoo.org> | 2001-07-30 22:17:21 +0000 |
---|---|---|
committer | Adam Bellinson <thread@gentoo.org> | 2001-07-30 22:17:21 +0000 |
commit | aee47624cfaa14d7e255da8d05b6a82071dfbffa (patch) | |
tree | cd6965f85b2696f9a9db12716066210ee01d6f8e /app-doc | |
parent | Added detailed dependencies (glibc, gcc etc.) (diff) | |
download | gentoo-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.php | 6 |
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 ); ?> |