Browse Source

fix

tags/6.1.1^2
tianya 2 years ago
parent
commit
83b9685910
2 changed files with 6 additions and 11 deletions
  1. +2
    -2
      src/system/archive/archives.class.php
  2. +4
    -9
      src/system/taglib/channel/stepselect.lib.php

+ 2
- 2
src/system/archive/archives.class.php View File

@@ -67,8 +67,8 @@ class Archives
//如果当前文档不是系统模型,为单表模型
$query = "SELECT arc.*,tp.reid,tp.typedir,ch.addtable
FROM `#@__archives` arc
LEFT JOIN #@__arctype tp on tp.id=arc.typeid
LEFT JOIN #@__channeltype as ch on arc.channel = ch.id
LEFT JOIN `#@__arctype` tp on tp.id=arc.typeid
LEFT JOIN `#@__channeltype` as ch on arc.channel = ch.id
WHERE arc.id='$aid' ";
$this->Fields = $this->dsql->GetOne($query);
} else {


+ 4
- 9
src/system/taglib/channel/stepselect.lib.php View File

@@ -16,15 +16,10 @@ function ch_stepselect($fvalue, &$arcTag, &$refObj, $fname = '')
function GetEnumsValue2($egroup, $evalue = 0)
{
if (!isset($GLOBALS['em_'.$egroup.'s'])) {
$cachefile = DEDEDATA.'/enums/'.$egroup.'.php';
if (!file_exists($cachefile)) {
require_once(DEDEINC.'/enums.func.php');
WriteEnumsCache();
}
if (!file_exists($cachefile)) {
return '';
} else {
require_once($cachefile);
$cachefile = DEDESTATIC.'/enums/'.$egroup.'.json';
$data = json_decode(file_get_contents($cachefile));
foreach ($data as $key => $value) {
$GLOBALS['em_'.$egroup.'s'][$key] = $value;
}
}
if ($evalue >= 500) {


Loading…
Cancel
Save