@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | public function viewtopic_attr_apply($event) |
105 | 105 | { |
106 | 106 | $attr_id = (int) $this->request->variable('attr_id', 0); |
107 | - if ( $attr_id ) |
|
107 | + if ($attr_id) |
|
108 | 108 | { |
109 | 109 | $this->qte->get_users_by_topic_id(array($event['topic_id'])); |
110 | 110 | $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']))); |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | |
126 | 126 | if ($topic_attribute != \ernadoo\qte\qte::KEEP) |
127 | 127 | { |
128 | - $post_data['topic_attr_id'] = (int) $topic_attribute; |
|
128 | + $post_data['topic_attr_id'] = (int) $topic_attribute; |
|
129 | 129 | $post_data['topic_attr_user'] = (int) $this->user->data['user_id']; |
130 | 130 | $post_data['topic_attr_time'] = time(); |
131 | 131 | |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | } |
152 | 152 | else if ($topic_attribute != \ernadoo\qte\qte::KEEP) |
153 | 153 | { |
154 | - if(empty($event['post_data']['topic_attr_id']) && $topic_attribute == \ernadoo\qte\qte::REMOVE) |
|
154 | + if (empty($event['post_data']['topic_attr_id']) && $topic_attribute == \ernadoo\qte\qte::REMOVE) |
|
155 | 155 | { |
156 | 156 | $topic_attribute = \ernadoo\qte\qte::KEEP; |
157 | 157 | } |