fix fund error

This commit is contained in:
wlx 2013-05-21 23:26:17 +00:00
parent f602aca71e
commit eeea7ce910
1 changed files with 3 additions and 2 deletions

View File

@ -3804,6 +3804,7 @@ class AuthorController extends Zend_Controller_Action
$submit = $this->_getParam('submit'); $submit = $this->_getParam('submit');
include_once("data/Fund.php"); include_once("data/Fund.php");
include_once("helper/view.php");
$fund = new Fund($this->db); $fund = new Fund($this->db);
$auth = Zend_Auth::getInstance(); $auth = Zend_Auth::getInstance();
@ -3821,13 +3822,13 @@ class AuthorController extends Zend_Controller_Action
if(empty($uuid)) if(empty($uuid))
{ {
$rows = $fund->fetch(0,true,$uid); $rows = $fund->fetch(0,true,$uid);
$fund->addPaginator($rows,$this->view,$this->_request); view::addPaginator($rows,$this->view,$this->_request);
}else{ }else{
include('data/Metadata.php'); include('data/Metadata.php');
$md = new Metadata($this->db); $md = new Metadata($this->db);
$this->view->md = $md->view($uuid); $this->view->md = $md->view($uuid);
$rows = $fund->fetch($uuid); $rows = $fund->fetch($uuid);
$fund->addPaginator($rows,$this->view,$this->_request); view::addPaginator($rows,$this->view,$this->_request);
} }
return true; return true;
} }