Subversion Repositories oidplus

Rev

Rev 1266 | Rev 1293 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1266 Rev 1267
Line 44... Line 44...
44
                        $res = OIDplus::db()->query("select * from ###ra where email = ?", array($email));
44
                        $res = OIDplus::db()->query("select * from ###ra where email = ?", array($email));
45
                        if (!$res->any()) {
45
                        if (!$res->any()) {
46
                                throw new OIDplusException(_L('RA does not exist'));
46
                                throw new OIDplusException(_L('RA does not exist'));
47
                        }
47
                        }
48
 
48
 
49
                        OIDplus::logger()->log("[?WARN/!OK]RA(%1)?/[?INFO/!OK]A?", "Changed RA '%1' contact data/details", $email);
49
                        OIDplus::logger()->log("V2:[OK/WARN]RA(%1)+[OK/INFO]A", "Changed RA '%1' contact data/details", $email);
50
 
50
 
51
                        if (isset($params['ra_name']))
51
                        if (isset($params['ra_name']))
52
                                OIDplus::db()->query("UPDATE ###ra SET ra_name = ? WHERE email = ?", array($params['ra_name'], $email));
52
                                OIDplus::db()->query("UPDATE ###ra SET ra_name = ? WHERE email = ?", array($params['ra_name'], $email));
53
                        if (isset($params['organization']))
53
                        if (isset($params['organization']))
54
                                OIDplus::db()->query("UPDATE ###ra SET organization = ? WHERE email = ?", array($params['organization'], $email));
54
                                OIDplus::db()->query("UPDATE ###ra SET organization = ? WHERE email = ?", array($params['organization'], $email));