Skip to content

Commit

Permalink
Fix PHP warning mentioned in MR #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Takika committed Jan 2, 2015
1 parent 2285176 commit dad5b54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rc_foldersort.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ public function init()
$this->uname = $this->rc->user->get_username();
$userprefs = $this->rc->user->get_prefs();
$this->sort_order = $userprefs['per_folder_sort'];
if (!is_array($this->sort_order)) {
$this->sort_order = array();
}

$this->rc->output->set_env('per_folder_sort', $this->sort_order);

if ($this->rc->task == 'settings') {
Expand Down

0 comments on commit dad5b54

Please sign in to comment.