添加更新新闻的分站限制
This commit is contained in:
parent
ab25f11718
commit
a119f356b9
|
@ -429,6 +429,8 @@ class Archive
|
|||
return 0;
|
||||
}
|
||||
|
||||
$config = \Zend_Registry::get('config');
|
||||
|
||||
$sql = "UPDATE ".$this->tbl_archives." SET
|
||||
userid=".$data['userid'].",
|
||||
title=".$data['title'].",
|
||||
|
@ -438,7 +440,7 @@ class Archive
|
|||
ts_published=".$data['ts_published'].",
|
||||
is_pub=".$data['is_pub'].",
|
||||
body=".$data['body']."
|
||||
WHERE id=$aid";
|
||||
WHERE id=$aid and sub='$config->sub->news'";
|
||||
try{
|
||||
if($this->db->exec($sql))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue