fix fund error
This commit is contained in:
parent
f602aca71e
commit
eeea7ce910
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue