|
From: Benjamin C. <bc...@us...> - 2001-12-07 14:18:26
|
Update of /cvsroot/phpbt/phpbt/admin
In directory usw-pr-cvs1:/tmp/cvs-serv6242/admin
Modified Files:
project.php
Log Message:
Cleanup
Index: project.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/admin/project.php,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- project.php 2001/12/06 14:28:31 1.27
+++ project.php 2001/12/07 14:18:22 1.28
@@ -190,7 +190,7 @@
$error['project'] = $STRING['givename'];
} elseif (!$_pv['description'] = htmlspecialchars(trim($_pv['description']))) {
$error['project'] = $STRING['givedesc'];
- } elseif (is_array($_pv['usergroup']) and
+ } elseif (isset($_pv['usergroup']) and is_array($_pv['usergroup']) and
in_array('all', $_pv['usergroup']) and count($_pv['usergroup']) > 1) {
$error['project'] = $STRING['project_only_all_groups'];
}
@@ -231,7 +231,7 @@
// Handle project -> group relationship
$old_usergroup = $q->grab_field_set('select group_id from '.TBL_PROJECT_GROUP.
" where project_id = $projectid");
- if (is_array($usergroup) and count($usergroup)) {
+ if (isset($usergroup) and is_array($usergroup) and count($usergroup)) {
if (in_array('all', $usergroup)) {
// User selected 'All groups'
if (count($old_usergroup)) {
|