@@ 215-218 (lines=4) @@ | ||
212 | } |
|
213 | ||
214 | // first check for obvious errors, we don't want to waste server resources |
|
215 | if (empty($custom_code)) |
|
216 | { |
|
217 | trigger_error($this->user->lang['ACP_PORTAL_CUSTOM_CODE_SHORT']. adm_back_link($u_action), E_USER_WARNING); |
|
218 | } |
|
219 | ||
220 | // get groups and check if the selected groups actually exist |
|
221 | $sql = 'SELECT group_id |
|
@@ 267-270 (lines=4) @@ | ||
264 | $groups_ary = array(); |
|
265 | ||
266 | // first check for obvious errors, we don't want to waste server resources |
|
267 | if (empty($custom_code)) |
|
268 | { |
|
269 | trigger_error($this->user->lang['ACP_PORTAL_CUSTOM_CODE_SHORT']. adm_back_link($u_action), E_USER_WARNING); |
|
270 | } |
|
271 | ||
272 | if ($custom_bbcode) |
|
273 | { |
@@ 190-193 (lines=4) @@ | ||
187 | generate_text_for_storage($welcome_message, $uid, $bitfield, $flags, true, true, true); |
|
188 | ||
189 | // first check for obvious errors, we don't want to waste server resources |
|
190 | if (empty($welcome_message)) |
|
191 | { |
|
192 | trigger_error($this->user->lang['ACP_PORTAL_WELCOME_MESSAGE_SHORT']. adm_back_link($u_action), E_USER_WARNING); |
|
193 | } |
|
194 | ||
195 | // set_portal_config will take care of escaping the welcome message |
|
196 | set_portal_config('board3_welcome_message_' . $module_id, $welcome_message); |