mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
Fix check for compile and cache IDs.
This commit is contained in:
@@ -1360,7 +1360,7 @@ function _run_insert_handler($args)
|
||||
return $funcname('write', $this, $results, $tpl_file, $cache_id, $compile_id);
|
||||
} else {
|
||||
// use local cache file
|
||||
if (isset($compile_id) && isset($cache_id))
|
||||
if (isset($compile_id) || isset($cache_id))
|
||||
$auto_id = $compile_id . $cache_id;
|
||||
else
|
||||
$auto_id = null;
|
||||
@@ -1391,7 +1391,7 @@ function _run_insert_handler($args)
|
||||
|
||||
} else {
|
||||
// use local file cache
|
||||
if (isset($compile_id) && isset($cache_id))
|
||||
if (isset($compile_id) || isset($cache_id))
|
||||
$auto_id = $compile_id . $cache_id;
|
||||
else
|
||||
$auto_id = null;
|
||||
|
@@ -1360,7 +1360,7 @@ function _run_insert_handler($args)
|
||||
return $funcname('write', $this, $results, $tpl_file, $cache_id, $compile_id);
|
||||
} else {
|
||||
// use local cache file
|
||||
if (isset($compile_id) && isset($cache_id))
|
||||
if (isset($compile_id) || isset($cache_id))
|
||||
$auto_id = $compile_id . $cache_id;
|
||||
else
|
||||
$auto_id = null;
|
||||
@@ -1391,7 +1391,7 @@ function _run_insert_handler($args)
|
||||
|
||||
} else {
|
||||
// use local file cache
|
||||
if (isset($compile_id) && isset($cache_id))
|
||||
if (isset($compile_id) || isset($cache_id))
|
||||
$auto_id = $compile_id . $cache_id;
|
||||
else
|
||||
$auto_id = null;
|
||||
|
Reference in New Issue
Block a user