Skip to content

Commit

Permalink
Fix uninitialized object exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
xcompass committed Jun 26, 2013
1 parent e0b590e commit 8b3a38e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/components/ajax_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ function getState()
// Got it okay?
if (!$state) {
// No state is session? Well, set it up then!
$state = new Object();
$state->sortBy = $this->sortBy;
$state->sortAsc = true;
$state->pageSize = 15;
Expand Down
1 change: 1 addition & 0 deletions app/controllers/events_controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ function index($courseId = null)
// Clear the state first, we don't want any previous searches/selections
$this->AjaxList->clearState();
// Set and update session state Variable
$joinFilterSelections = new Object();
$joinFilterSelections->course_id = $courseId;
$this->AjaxList->setStateVariable("joinFilterSelections", $joinFilterSelections);

Expand Down

0 comments on commit 8b3a38e

Please sign in to comment.