diff --git a/admin/committees.php b/admin/committees.php index e11844a..79d23c5 100644 --- a/admin/committees.php +++ b/admin/committees.php @@ -139,7 +139,11 @@ if($_POST['committees_id'] && $_POST['committees_ord']) $ctitle = $titles[$cid]; $cord = $pords[$cid]; - + + /* If the committee has no members, don't bother trying to do + * anything */ + if(!is_array($ctitle)) continue; + foreach($ctitle as $uid=>$title) { $o = intval($cord[$uid]); $t = mysql_escape_string(stripslashes($title));