| @@ 402-416 (lines=15) @@ | ||
| 399 | * | |
| 400 | * @return bool True if set, false if invalid. | |
| 401 | */ | |
| 402 | public function set_duplicate($idea_id, $duplicate) | |
| 403 | 	{ | |
| 404 | if ($duplicate && !is_numeric($duplicate)) | |
| 405 | 		{ | |
| 406 | return false; | |
| 407 | } | |
| 408 | ||
| 409 | $sql_ary = array( | |
| 410 | 'duplicate_id' => (int) $duplicate, | |
| 411 | ); | |
| 412 | ||
| 413 | $this->update_idea_data($sql_ary, $idea_id, $this->table_ideas); | |
| 414 | ||
| 415 | return true; | |
| 416 | } | |
| 417 | ||
| 418 | /** | |
| 419 | * Sets the RFC link of an idea. | |
| @@ 451-465 (lines=15) @@ | ||
| 448 | * | |
| 449 | * @return bool True if set, false if invalid. | |
| 450 | */ | |
| 451 | public function set_ticket($idea_id, $ticket) | |
| 452 | 	{ | |
| 453 | if ($ticket && !is_numeric($ticket)) | |
| 454 | 		{ | |
| 455 | return false; | |
| 456 | } | |
| 457 | ||
| 458 | $sql_ary = array( | |
| 459 | 'ticket_id' => (int) $ticket, | |
| 460 | ); | |
| 461 | ||
| 462 | $this->update_idea_data($sql_ary, $idea_id, $this->table_ideas); | |
| 463 | ||
| 464 | return true; | |
| 465 | } | |
| 466 | ||
| 467 | /** | |
| 468 | * Sets the implemented version of an idea. | |