mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix undefined variables and properties
This commit is contained in:
parent
94e2d8e11a
commit
010ba87c5b
4 changed files with 7 additions and 3 deletions
|
|
@ -134,7 +134,10 @@ class EditorModel extends Editor
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(!$_SESSION['_editor_sequence_']) $_SESSION['_editor_sequence_'] = 1;
|
if(empty($_SESSION['_editor_sequence_']))
|
||||||
|
{
|
||||||
|
$_SESSION['_editor_sequence_'] = 1;
|
||||||
|
}
|
||||||
$option->editor_sequence = $_SESSION['_editor_sequence_']++;
|
$option->editor_sequence = $_SESSION['_editor_sequence_']++;
|
||||||
}
|
}
|
||||||
Context::set('allow_fileupload', $option->allow_fileupload = toBool($option->allow_fileupload));
|
Context::set('allow_fileupload', $option->allow_fileupload = toBool($option->allow_fileupload));
|
||||||
|
|
|
||||||
|
|
@ -941,6 +941,7 @@ class LayoutAdminController extends Layout
|
||||||
$oModel = getModel('layout');
|
$oModel = getModel('layout');
|
||||||
$layoutInfo = $oModel->getLayout($layoutSrl);
|
$layoutInfo = $oModel->getLayout($layoutSrl);
|
||||||
|
|
||||||
|
$newLayoutInfo = new stdClass;
|
||||||
if($layoutInfo->extra_var_count)
|
if($layoutInfo->extra_var_count)
|
||||||
{
|
{
|
||||||
foreach($layoutInfo->extra_var as $varId => $val)
|
foreach($layoutInfo->extra_var as $varId => $val)
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,7 @@ class MemberModel extends Member
|
||||||
}
|
}
|
||||||
foreach($config->signupForm as $key => $value)
|
foreach($config->signupForm as $key => $value)
|
||||||
{
|
{
|
||||||
if($value->isDefaultForm && empty($value->isCustomTitle))
|
if(!empty($value->isDefaultForm) && empty($value->isCustomTitle))
|
||||||
{
|
{
|
||||||
$config->signupForm[$key]->title = lang($value->name);
|
$config->signupForm[$key]->title = lang($value->name);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@
|
||||||
{@ $fixed_private_list = array('email_address', 'phone_number', 'password')}
|
{@ $fixed_private_list = array('email_address', 'phone_number', 'password')}
|
||||||
<!--@foreach($config->signupForm as $item)-->
|
<!--@foreach($config->signupForm as $item)-->
|
||||||
<!--@if(in_array($item->name, $disabled_list))-->
|
<!--@if(in_array($item->name, $disabled_list))-->
|
||||||
<!--@elseif($item->isDefaultForm)-->
|
<!--@elseif(isset($item->isDefaultForm) && $item->isDefaultForm)-->
|
||||||
<tr class="_imageType"|cond="$item->imageType">
|
<tr class="_imageType"|cond="$item->imageType">
|
||||||
<input type="hidden" name="list_order[]" value="{$item->name}" />
|
<input type="hidden" name="list_order[]" value="{$item->name}" />
|
||||||
<input type="hidden" name="usable_list[]" value="{$item->name}" cond="$item->isIdentifier || $item->mustRequired"/>
|
<input type="hidden" name="usable_list[]" value="{$item->name}" cond="$item->isIdentifier || $item->mustRequired"/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue