Skip to content

Commit

Permalink
Fixed: PHP warning in project, milestone and task controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
eaxs committed Aug 11, 2016
1 parent 4f8d8e5 commit 96f53dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ protected function getReturnPage()
*
* @return void
*/
protected function postSaveHook(&$model, $data)
protected function postSaveHook(JModelLegacy $model, $data = array())
{
$task = $this->getTask();
$id = (int) $model->getState('form.id');
Expand Down
2 changes: 1 addition & 1 deletion source/components/com_pfprojects/site/controllers/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ protected function getReturnPage()
*
* @return void
*/
protected function postSaveHook($model, $data = array())
protected function postSaveHook(JModelLegacy $model, $data = array())
{
$task = $this->getTask();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ protected function getReturnPage()
*
* @return void
*/
protected function postSaveHook(&$model, $validData)
protected function postSaveHook(JModelLegacy $model, $validData = array())
{
$task = $this->getTask();

Expand Down

0 comments on commit 96f53dd

Please sign in to comment.