diff --git a/plugin/LiveLinks/Objects/LiveLinksTable.php b/plugin/LiveLinks/Objects/LiveLinksTable.php index cbc775db8..03825a7f4 100644 --- a/plugin/LiveLinks/Objects/LiveLinksTable.php +++ b/plugin/LiveLinks/Objects/LiveLinksTable.php @@ -1,108 +1,111 @@ users_id)){ $this->users_id = User::getId(); } + if(empty($this->categories_id)){ + $this->categories_id = 'NULL'; + } Category::clearCacheCount(); return parent::save(); } function getId() { return $this->id; } function getTitle() { return $this->title; } function getDescription() { return $this->description; } function getLink() { return $this->link; } function getStart_date() { return $this->start_date; } function getEnd_date() { return $this->end_date; } function getType() { return $this->type; } function getStatus() { return $this->status; } function getUsers_id() { return $this->users_id; } function setTitle($title) { $this->title = $title; } function setDescription($description) { $this->description = $description; } function setLink($link) { $this->link = $link; } function setStart_date($start_date) { $this->start_date = $start_date; } function setEnd_date($end_date) { $this->end_date = $end_date; } function setType($type) { $this->type = $type; } function setStatus($status) { $this->status = $status; } function setUsers_id($users_id) { $this->users_id = $users_id; } function getCategories_id() { return $this->categories_id; } function setCategories_id($categories_id) { $this->categories_id = intval($categories_id); } }