* modified some codes.

This commit is contained in:
liukmqd@gmail.com
2011-05-01 10:44:51 +00:00
parent abe5e62274
commit 31082ec525

View File

@@ -484,7 +484,7 @@ class storyModel extends model
public function getByQuery($productID, $query, $orderBy, $pager = null)
{
$tmpStories = $this->dao->select('*')->from(TABLE_STORY)->where($query)
->andWhere('product')->eq((int)$productID)
->beginIF($productID != 'all')->andWhere('product')->eq((int)$productID)->fi()
->andWhere('deleted')->eq(0)
->orderBy($orderBy)
->page($pager)