fix error
This commit is contained in:
parent
0848fcb69b
commit
fc2a1ac56e
|
@ -42,7 +42,7 @@ class Admin_NewsController extends Zend_Controller_Action
|
||||||
left join ".$News->tbl_catalog." ct on ct.aid=n.id
|
left join ".$News->tbl_catalog." ct on ct.aid=n.id
|
||||||
left join ".$News->tbl_categorys." c on c.id = ct.cid
|
left join ".$News->tbl_categorys." c on c.id = ct.cid
|
||||||
LEFT JOIN users u ON n.userid=u.id
|
LEFT JOIN users u ON n.userid=u.id
|
||||||
WHERE c.id='$type' AND n.title IS NOT NULL and n.sub='$this->view->config->sub->news' order by n.ts_created desc";
|
WHERE c.id='$type' AND n.title IS NOT NULL and n.sub='".$this->view->config->sub->news."' order by n.ts_created desc";
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
$sql = "select
|
$sql = "select
|
||||||
|
|
Loading…
Reference in New Issue