Version: 4.0.4 Reporter: Bill the Grue —
Hello all!
When changing localization settings on forum undefined index error is thrown. All other changes seem to work as expected.
To reproduce:
The error is below:
Notice
Undefined index: site_default
ee/EllisLab/Addons/member/mod.member_settings.php, line 1643 hide details
Severity: E_NOTICE
the code block at line 1643:
foreach (array('timezone', 'date_format', 'time_format', 'include_seconts') as $key)
{
if ($_POST['site_default'] == 'y')
{
$data[$key] = NULL;
}
else
{
$data[$key] = ee()->input->post($key);
}
}
Robin note: Setting the seconds and the ‘use default’ aren’t sticking in my v4 tests. Not sure why the radio wouldn’t be set, but it makes sense to check for it in any case.
ee/EllisLab/Addons/member/mod.member_settings.php around line 1643
if ($_POST['site_default'] == 'y')
change to
if (isset($_POST['site_default']) && $_POST['site_default'] == 'y')
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```