mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
각종 PHP 7.2 에서 나는 워닝에러를 고침
This commit is contained in:
parent
f2d2867069
commit
6496055581
5 changed files with 10 additions and 7 deletions
|
|
@ -323,7 +323,7 @@ class Validator
|
|||
|
||||
if(is_array($value))
|
||||
{
|
||||
if(!isset($value[tmp_name]))
|
||||
if(!isset($value['tmp_name']))
|
||||
{
|
||||
$value = implode('', $value);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -216,7 +216,7 @@ class XmlJsFilter extends XmlParser
|
|||
}
|
||||
|
||||
// generates a field, which is a script of the checked item
|
||||
$node_count = count($field_node);
|
||||
$node_count = countobj($field_node);
|
||||
if($node_count)
|
||||
{
|
||||
foreach($field_node as $key => $node)
|
||||
|
|
@ -309,7 +309,7 @@ class XmlJsFilter extends XmlParser
|
|||
|
||||
// generates parameter script to create dbata
|
||||
$rename_params = array();
|
||||
$parameter_count = count($parameter_param);
|
||||
$parameter_count = countobj($parameter_param);
|
||||
if($parameter_count)
|
||||
{
|
||||
// contains parameter of the default filter contents
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@
|
|||
</div>
|
||||
<form action="" class="search x_input-append center" no-error-return-url="true">
|
||||
<input type="hidden" name="module" value="{$module}" />
|
||||
<select cond="count($module_category)" name="module_category_srl" title="{$lang->module_category}" style="margin-right:4px">
|
||||
<select cond="countobj($module_category)" name="module_category_srl" title="{$lang->module_category}" style="margin-right:4px">
|
||||
<option value="" selected="selected"|cond="!$module_category_srl">{$lang->all}</option>
|
||||
<option value="0" selected="selected"|cond="$module_category_srl==='0'">{$lang->not_exists}</option>
|
||||
<option value="{$key}" loop="$module_category => $key,$val" selected="selected"|cond="$module_category_srl==$key">{$val->title}</option>
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class documentModel extends document
|
|||
$_document_list = &$GLOBALS['XE_DOCUMENT_LIST'];
|
||||
|
||||
// XE XE_DOCUMENT_LIST all documents that the object referred to the global variable settings
|
||||
if(count($_document_list) <= 0) return;
|
||||
if(countobj($_document_list) <= 0) return;
|
||||
|
||||
// Find all called the document object variable has been set extension
|
||||
$document_srls = array();
|
||||
|
|
@ -75,6 +75,7 @@ class documentModel extends document
|
|||
$output = $this->getDocumentExtraVarsFromDB($document_srls);
|
||||
if($output->toBool() && $output->data)
|
||||
{
|
||||
$extra_vars = array();
|
||||
foreach($output->data as $key => $val)
|
||||
{
|
||||
if(!isset($val->value)) continue;
|
||||
|
|
|
|||
|
|
@ -487,7 +487,9 @@ class moduleModel extends module
|
|||
$list = Rhymix\Framework\Cache::get('site_and_module:module:mid_list_' . $args->site_srl);
|
||||
if($list === null)
|
||||
{
|
||||
if(count($args) === 1 && isset($args->site_srl))
|
||||
$argsCount = countobj($args);
|
||||
|
||||
if($argsCount === 1 && isset($args->site_srl))
|
||||
{
|
||||
$columnList = array();
|
||||
}
|
||||
|
|
@ -496,7 +498,7 @@ class moduleModel extends module
|
|||
if(!$output->toBool()) return $output;
|
||||
$list = $output->data;
|
||||
|
||||
if(count($args) === 1 && isset($args->site_srl) && !$columnList)
|
||||
if($argsCount === 1 && isset($args->site_srl) && !$columnList)
|
||||
{
|
||||
Rhymix\Framework\Cache::set('site_and_module:module:mid_list_' . $args->site_srl, $list, 0, true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue