增加删除新闻的限制
This commit is contained in:
parent
44119d6412
commit
a254e495ca
|
@ -270,13 +270,15 @@ class Archive
|
||||||
|
|
||||||
$this->DeleteTags($aid);
|
$this->DeleteTags($aid);
|
||||||
|
|
||||||
$sql = "DELETE FROM ".$this->tbl_archives." WHERE id=$aid";
|
$config = \Zend_Registry::get('config');
|
||||||
@$this->db->exec($sql);
|
$sql = "DELETE FROM ".$this->tbl_archives." WHERE id=$aid and sub='".$config->sub->news."'";
|
||||||
|
if ($this->db->exec($sql))
|
||||||
$sql = "DELETE FROM ".$this->tbl_catalog." WHERE aid=$aid";
|
{
|
||||||
@$this->db->exec($sql);
|
$sql = "DELETE FROM ".$this->tbl_catalog." WHERE aid=$aid";
|
||||||
|
@$this->db->exec($sql);
|
||||||
return true;
|
return true;
|
||||||
|
} else
|
||||||
|
return false;
|
||||||
}//DeleteArchives
|
}//DeleteArchives
|
||||||
|
|
||||||
//写入标签关系
|
//写入标签关系
|
||||||
|
|
Loading…
Reference in New Issue