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