@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | public function viewtopic_attr_apply($event) |
103 | 103 | { |
104 | 104 | $attr_id = (int) $this->request->variable('attr_id', 0); |
105 | - if ( $attr_id ) |
|
105 | + if ($attr_id) |
|
106 | 106 | { |
107 | 107 | $this->qte->get_users_by_topic_id(array($event['topic_id'])); |
108 | 108 | $this->qte->attr_apply($attr_id, $event['topic_id'], $event['forum_id'], $event['topic_data']['topic_attr_id'], (array) unserialize(trim($event['topic_data']['hide_attr']))); |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | |
124 | 124 | if ($topic_attribute != \ernadoo\qte\qte::KEEP) |
125 | 125 | { |
126 | - $post_data['topic_attr_id'] = (int) $topic_attribute; |
|
126 | + $post_data['topic_attr_id'] = (int) $topic_attribute; |
|
127 | 127 | $post_data['topic_attr_user'] = (int) $this->user->data['user_id']; |
128 | 128 | $post_data['topic_attr_time'] = time(); |
129 | 129 | |
@@ -146,11 +146,11 @@ discard block |
||
146 | 146 | |
147 | 147 | if ($event['post_data']['force_attr']) |
148 | 148 | { |
149 | - if ($post_data['attr_id'] == \ernadoo\qte\qte::REMOVE && ($event['mode'] == 'post' || ($event['mode'] == 'edit' && $event['post_data']['topic_first_post_id'] == $event['post_id'])) ) |
|
149 | + if ($post_data['attr_id'] == \ernadoo\qte\qte::REMOVE && ($event['mode'] == 'post' || ($event['mode'] == 'edit' && $event['post_data']['topic_first_post_id'] == $event['post_id']))) |
|
150 | 150 | { |
151 | 151 | $error = $event['error']; |
152 | 152 | $error[] = $this->user->lang['QTE_ATTRIBUTE_UNSELECTED']; |
153 | - $event['error'] = $error ; |
|
153 | + $event['error'] = $error; |
|
154 | 154 | |
155 | 155 | // init the value |
156 | 156 | $post_data['attr_id'] = 0; |