Skip to content

Commit

Permalink
Fix to category level causing PHP Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Nov 3, 2014
1 parent d932769 commit d7c6e11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions installation/model/languages.php
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,7 @@ public function addCategory($itemLanguage)
// Using $category->setLocation(1, 'last-child'); would be ideal here but doesn't seem to work in postgres
// as we're in install and 'know' the structure we'll just manually set it to be a child of the root category.
$data['parent_id'] = 1;
$data['level'] = 1;

// Bind the data to the table
if (!$category->bind($data))
Expand Down

0 comments on commit d7c6e11

Please sign in to comment.