| @@ 412-419 (lines=8) @@ | ||
| 409 | // time ! |
|
| 410 | $current_time = time(); |
|
| 411 | ||
| 412 | if ($attribute_id != self::REMOVE) |
|
| 413 | { |
|
| 414 | $fields = array( |
|
| 415 | 'topic_attr_id' => $attribute_id, |
|
| 416 | 'topic_attr_user' => $this->user->data['user_id'], |
|
| 417 | 'topic_attr_time' => $current_time, |
|
| 418 | ); |
|
| 419 | } |
|
| 420 | ||
| 421 | $sql = 'UPDATE ' . TOPICS_TABLE . ' |
|
| 422 | SET ' . $this->db->sql_build_array('UPDATE', $fields) . ' |
|
| @@ 497-504 (lines=8) @@ | ||
| 494 | // time ! |
|
| 495 | $current_time = time(); |
|
| 496 | ||
| 497 | if ($attribute_id != self::REMOVE) |
|
| 498 | { |
|
| 499 | $fields = array( |
|
| 500 | 'topic_attr_id' => $attribute_id, |
|
| 501 | 'topic_attr_user' => $this->user->data['user_id'], |
|
| 502 | 'topic_attr_time' => $current_time, |
|
| 503 | ); |
|
| 504 | } |
|
| 505 | ||
| 506 | $sql = 'SELECT topic_id, forum_id, topic_title, topic_attr_id |
|
| 507 | FROM ' . TOPICS_TABLE . ' |
|