* fix some bugs.

This commit is contained in:
zhujinyong
2012-02-20 09:06:53 +00:00
parent 79c9f298e4
commit 5d0c048bab
13 changed files with 38 additions and 35 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ class product extends control
/* Get all products, if no, goto the create page. */
$this->products = $this->product->getPairs();
if(empty($this->products) and strpos('create|view', $this->methodName) === false) $this->locate($this->createLink('product', 'create'));
if(empty($this->products) and strpos('create', $this->methodName) === false) $this->locate($this->createLink('product', 'create'));
$this->view->products = $this->products;
}