All pastes #902404 Raw Edit

Someone

public text v1 · immutable
·published 2008-02-13 13:40 UTC
rendered paste body
when i did try to approve an project i did get this as result 

Notice: Undefined variable: idadmin_group in /opt/gforge/common/include/Group.class.php on line 1993

Notice: Undefined index: session_hash in /opt/gforge/common/mail/MailingList.class.php on line 156

Notice: Undefined variable: idadmin_group in /opt/gforge/common/include/Group.class.php on line 2007


Line 1982 - 1997

                //
                //
                //      Create MailingList 
                // 
                //
                $mlist = new MailingList($this);
                $admin_group = db_query("SELECT user_id FROM user_group
                WHERE group_id=".$this->getID()." AND admin_flags='A'");
                if (db_numrows($admin_group) > 0) {
                        $idadmin_group = db_result($admin_group,0,'user_id');
                }
                if (!$mlist->create('commits','Commits',1,$idadmin_group)) {
                        $this->setError(sprintf(_('ML: %s'),$mlist->getErrorMessage()));
                        db_rollback();
                        return false;
                }

when "if (db_numrows($admin_group) > 0)" not is true it won`t set $idadmin_group.