From 56442e1f0f9dda787adc3a0330980a176d76ee2b Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Fri, 1 Jan 2010 14:35:23 +0000 Subject: [PATCH] * fix the error of endless loop. --- trunk/module/product/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/module/product/control.php b/trunk/module/product/control.php index dbc91586cf..f6b91861d9 100644 --- a/trunk/module/product/control.php +++ b/trunk/module/product/control.php @@ -38,7 +38,7 @@ class product extends control /* 获取所有的产品列表。如果还没有产品,则跳转到产品的添加页面。*/ $this->products = $this->product->getPairs(); - if(empty($this->products)) $this->locate($this->createLink('product', 'create')); + if(empty($this->products) and $this->methodName != 'create') $this->locate($this->createLink('product', 'create')); $this->assign('products', $this->products); }