Browse Source

Update index_body.php

tags/6.2.5
tianya 2 years ago
parent
commit
dcae92e991
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/admin/index_body.php

+ 4
- 2
src/admin/index_body.php View File

@@ -36,11 +36,13 @@ else if ($dopost == 'setskin') {
<table class="table table-borderless">
<?php
$userCatalogSql = '';
if (count($admin_catalogs) > 0) {
$admin_catalog = join(',', $admin_catalogs);
$userCatalogSql = "AND arc.typeid IN($admin_catalog) ";
}
$query = "SELECT arc.id, arc.arcrank, arc.title, arc.typeid, arc.pubdate, arc.channel, ch.editcon, tp.typename FROM `#@__archives` arc LEFT JOIN `#@__channeltype` ch ON ch.id = arc.channel LEFT JOIN `#@__arctype` tp ON arc.typeid=tp.id WHERE arc.arcrank<>-2 {$userCatalogSql} ORDER BY arc.id DESC LIMIT 0,12";
$query = "SELECT arc.id, arc.arcrank, arc.title, arc.typeid, arc.mid, arc.pubdate, arc.channel, ch.editcon, tp.typename FROM `#@__archives` arc LEFT JOIN `#@__channeltype` ch ON ch.id = arc.channel LEFT JOIN `#@__arctype` tp ON arc.typeid=tp.id WHERE arc.arcrank<>-2 {$userCatalogSql} AND arc.mid={$cuserLogin->getUserID()} ORDER BY arc.id DESC LIMIT 0,12";
$arcArr = array();
$dsql->Execute('m', $query);
while($row = $dsql->GetArray('m'))
@@ -49,7 +51,7 @@ else if ($dopost == 'setskin') {
}
?>
<?php
if (count($arcArr) > 1)
if (count($arcArr) > 0)
{
foreach($arcArr as $row)
{


Loading…
Cancel
Save