Rev 962 | Rev 1050 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 962 | Rev 978 | ||
---|---|---|---|
Line 140... | Line 140... | ||
140 | if (strlen($new_oid) > $maxlen) { |
140 | if (strlen($new_oid) > $maxlen) { |
141 | throw new OIDplusException(_L('The resulting OID %1 is too long (max allowed length: %2)',$new_oid,$maxlen)); |
141 | throw new OIDplusException(_L('The resulting OID %1 is too long (max allowed length: %2)',$new_oid,$maxlen)); |
142 | } |
142 | } |
143 | 143 | ||
144 | OIDplus::db()->query("insert into ###objects (id, ra_email, parent, title, description, confidential, created) values (?, ?, ?, ?, ?, ?, ".OIDplus::db()->sqlDate().")", array('oid:'.$new_oid, $email, self::getFreeRootOid(true), $title, $description, false)); |
144 | OIDplus::db()->query("insert into ###objects (id, ra_email, parent, title, description, confidential, created) values (?, ?, ?, ?, ?, ?, ".OIDplus::db()->sqlDate().")", array('oid:'.$new_oid, $email, self::getFreeRootOid(true), $title, $description, false)); |
- | 145 | OIDplusObject::resetObjectInformationCache(); |
|
145 | } catch (Exception $e) { |
146 | } catch (Exception $e) { |
146 | $ra->delete(); |
147 | $ra->delete(); |
147 | throw $e; |
148 | throw $e; |
148 | } |
149 | } |
149 | 150 |