mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix PHP warnings due to unitiated variables #1866 thanks to @Erictoby
This commit is contained in:
parent
70cfe24cdd
commit
7e82d37cfa
11 changed files with 54 additions and 51 deletions
|
|
@ -505,7 +505,7 @@ class layoutModel extends layout
|
|||
$cache_file = $this->getUserLayoutCache($layout_srl, Context::getLangType());
|
||||
}
|
||||
|
||||
if(file_exists($cache_file)&&filemtime($cache_file)>filemtime($xml_file))
|
||||
if(file_exists($cache_file) && filemtime($cache_file) > filemtime($xml_file))
|
||||
{
|
||||
include($cache_file);
|
||||
|
||||
|
|
@ -513,7 +513,7 @@ class layoutModel extends layout
|
|||
{
|
||||
foreach($vars as $key => $value)
|
||||
{
|
||||
if(!$layout_info->extra_var->{$key} && !$layout_info->{$key})
|
||||
if(!isset($layout_info->extra_var->{$key}) && !isset($layout_info->{$key}))
|
||||
{
|
||||
$layout_info->{$key} = $value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue