mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
W.I.P. migration of mainscreen to et2:
- Fix not saving data when the content is empty
This commit is contained in:
parent
6b633b2c50
commit
60be39ec2c
@ -55,10 +55,7 @@ class admin_messages
|
||||
foreach (array ('mainscreen', 'loginscreen') as $section)
|
||||
{
|
||||
$prefix = $content['html'] == true ? 'html_' : 'text_';
|
||||
if ($content[$prefix.$section] && $content[$prefix.$section])
|
||||
{
|
||||
Api\Translation::write($content['lang'], $section, $section.'_message',$content[$prefix.$section]);
|
||||
}
|
||||
Api\Translation::write($content['lang'], $section, $section.'_message',$content[$prefix.$section]);
|
||||
}
|
||||
Framework::message(lang('message has been updated'));
|
||||
if ($button == 'apply') break;
|
||||
|
Loading…
Reference in New Issue
Block a user