Skip to content

Commit 1f8e65c

Browse files
committed
Fix bugs
1 parent db3c088 commit 1f8e65c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

site/models/person.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,13 @@ public function getForm($data = array(), $loadData = true) {
144144
if (empty($form)) {
145145
return false;
146146
}
147-
/*
148147
$pk = $this->getState('person.id');
149148
if (empty($pk)) $pk = $this->pk;
150149
$params = $this->getState('params');
151150
$person = $this->_item[$pk];
152151
if (is_object($person)) {
153152
$params->merge($person->params);
154153
}
155-
*/
156154
return $form;
157155
}
158156

site/views/person/view.html.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ClubManagementViewPerson extends JViewLegacy {
2222

2323
function display($tpl = null) {
2424
// Init variables
25-
$this->state = $his->get('State');
25+
$this->state = $this->get('State');
2626
if ($this->getLayout() =='form') {
2727
$this->getModel()->setUseAlias(false);
2828
}
@@ -40,8 +40,8 @@ function display($tpl = null) {
4040
// Read infos from URI
4141
$uri = JFactory::getURI();
4242
$id = $uri->getVar('id');
43-
if (!$id) $id = JRequest::getVar('id');
44-
if (!$id) $id = $this->state->get('person.id');
43+
if (!$id) { $id = JRequest::getVar('id'); }
44+
if (!$id) { $id = $this->state->get('person.id'); }
4545
if (!$id) {
4646
$this->idList = $this->getModel()->getPersonIdListForCurrentUser();
4747
} else {
@@ -60,4 +60,4 @@ function display($tpl = null) {
6060
parent::display($tpl);
6161
}
6262
}
63-
?>
63+
?>

0 commit comments

Comments
 (0)