mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
addEvent() returns new event
This commit is contained in:
parent
1e0172dd8f
commit
b177e77389
|
@ -73,7 +73,12 @@ class SeedDMS_Calendar {
|
|||
"(".$this->db->qstr($name).", ".$this->db->qstr($comment).", ".(int) $from.", ".(int) $to.", ".$this->db->getCurrentTimestamp().", ".$this->user->getID().")";
|
||||
|
||||
$ret = $this->db->getResult($queryStr);
|
||||
return $ret;
|
||||
if (!$ret)
|
||||
return false;
|
||||
|
||||
$event = $this->getEvent((int) $this->db->getInsertID('tblEvents'));
|
||||
|
||||
return $event;
|
||||
} /* }}} */
|
||||
|
||||
public function getEvent($id) { /* {{{ */
|
||||
|
|
Loading…
Reference in New Issue
Block a user