mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Fix various warnings in PHP 8.0
This commit is contained in:
parent
3b4e99f4ff
commit
575cc9f13f
2 changed files with 6 additions and 6 deletions
|
|
@ -776,7 +776,7 @@ class boardView extends board
|
||||||
foreach($normal_category_list as $category_srl => $category)
|
foreach($normal_category_list as $category_srl => $category)
|
||||||
{
|
{
|
||||||
$is_granted = TRUE;
|
$is_granted = TRUE;
|
||||||
if($category->group_srls)
|
if(isset($category->group_srls) && $category->group_srls)
|
||||||
{
|
{
|
||||||
$category_group_srls = explode(',',$category->group_srls);
|
$category_group_srls = explode(',',$category->group_srls);
|
||||||
$is_granted = FALSE;
|
$is_granted = FALSE;
|
||||||
|
|
@ -814,12 +814,12 @@ class boardView extends board
|
||||||
|
|
||||||
$member_info = MemberModel::getMemberInfo($oDocument->get('member_srl'));
|
$member_info = MemberModel::getMemberInfo($oDocument->get('member_srl'));
|
||||||
|
|
||||||
if($oDocument->get('module_srl') == $oDocument->get('member_srl')) $savedDoc = TRUE;
|
$savedDoc = ($oDocument->get('module_srl') == $oDocument->get('member_srl'));
|
||||||
$oDocument->add('module_srl', $this->module_srl);
|
$oDocument->add('module_srl', $this->module_srl);
|
||||||
|
|
||||||
if($oDocument->isExists())
|
if($oDocument->isExists())
|
||||||
{
|
{
|
||||||
if($this->module_info->protect_document_regdate > 0 && $this->grant->manager == false)
|
if(($this->module_info->protect_document_regdate ?? 0) > 0 && $this->grant->manager == false)
|
||||||
{
|
{
|
||||||
if($oDocument->get('regdate') < date('YmdHis', strtotime('-'.$this->module_info->protect_document_regdate.' day')))
|
if($oDocument->get('regdate') < date('YmdHis', strtotime('-'.$this->module_info->protect_document_regdate.' day')))
|
||||||
{
|
{
|
||||||
|
|
@ -828,7 +828,7 @@ class boardView extends board
|
||||||
throw new Rhymix\Framework\Exception($massage);
|
throw new Rhymix\Framework\Exception($massage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($this->module_info->protect_content == "Y" || $this->module_info->protect_update_content == 'Y')
|
if(($this->module_info->protect_content ?? 'N') === 'Y' || ($this->module_info->protect_update_content ?? 'N') == 'Y')
|
||||||
{
|
{
|
||||||
if($oDocument->get('comment_count') > 0 && $this->grant->manager == false)
|
if($oDocument->get('comment_count') > 0 && $this->grant->manager == false)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -71,12 +71,12 @@
|
||||||
<label for="tags" class="iLabel">{$lang->tag}: {$lang->about_tag}</label>
|
<label for="tags" class="iLabel">{$lang->tag}: {$lang->about_tag}</label>
|
||||||
<input type="text" name="tags" id="tags" value="{htmlspecialchars($oDocument->get('tags'))}" class="iText" style="width:300px" title="Tag" />
|
<input type="text" name="tags" id="tags" value="{htmlspecialchars($oDocument->get('tags'))}" class="iText" style="width:300px" title="Tag" />
|
||||||
</span>
|
</span>
|
||||||
<span class="item" cond="$oDocument->get('document_srl') && $module_info->update_log == 'Y'">
|
<span class="item" cond="$oDocument->get('document_srl') && isset($module_info->update_log) && $module_info->update_log == 'Y'">
|
||||||
<label for="reason_update" class="iLabel">{$lang->reason_update}</label>
|
<label for="reason_update" class="iLabel">{$lang->reason_update}</label>
|
||||||
<input type="text" name="reason_update" id="reason_update" value="" class="iText" style="width:300px" title="reason update" />
|
<input type="text" name="reason_update" id="reason_update" value="" class="iText" style="width:300px" title="reason update" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="write_captcha" cond="$captcha">
|
<div class="write_captcha" cond="isset($captcha) && $captcha">
|
||||||
{$captcha}
|
{$captcha}
|
||||||
</div>
|
</div>
|
||||||
<div style="float:right">
|
<div style="float:right">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue