| @@ 407-414 (lines=8) @@ | ||
| 404 | // time ! |
|
| 405 | $current_time = time(); |
|
| 406 | ||
| 407 | if ($attribute_id != self::REMOVE) |
|
| 408 | { |
|
| 409 | $fields = array( |
|
| 410 | 'topic_attr_id' => $attribute_id, |
|
| 411 | 'topic_attr_user' => $this->user->data['user_id'], |
|
| 412 | 'topic_attr_time' => $current_time, |
|
| 413 | ); |
|
| 414 | } |
|
| 415 | ||
| 416 | $sql = 'UPDATE ' . TOPICS_TABLE . ' |
|
| 417 | SET ' . $this->db->sql_build_array('UPDATE', $fields) . ' |
|
| @@ 493-500 (lines=8) @@ | ||
| 490 | // time ! |
|
| 491 | $current_time = time(); |
|
| 492 | ||
| 493 | if ($attribute_id != self::REMOVE) |
|
| 494 | { |
|
| 495 | $fields = array( |
|
| 496 | 'topic_attr_id' => $attribute_id, |
|
| 497 | 'topic_attr_user' => $this->user->data['user_id'], |
|
| 498 | 'topic_attr_time' => $current_time, |
|
| 499 | ); |
|
| 500 | } |
|
| 501 | ||
| 502 | $sql = 'SELECT topic_id, forum_id, topic_title, topic_attr_id |
|
| 503 | FROM ' . TOPICS_TABLE . ' |
|