Skip to content

Commit

Permalink
Code style improvement.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpasing committed Jun 15, 2017
1 parent 4382c7b commit 147cc42
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions administrator/components/com_fields/helpers/fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,12 @@ function categoryHasChanged(element) {
$model = JModelLegacy::getInstance('Groups', 'FieldsModel', array('ignore_request' => true));
$model->setState('filter.context', $context);

// $model->getItems() would only return existant groups, but we also
// have the 'default' group with id 0 with isn't existant in the database,
// so we create it virtually here.
$defaultGroup = new \stdClass();
/**
* $model->getItems() would only return existant groups, but we also
* have the 'default' group with id 0 with isn't existant in the database,
* so we create it virtually here.
*/
$defaultGroup = new \stdClass;
$defaultGroup->id = 0;
$defaultGroup->title = '';
$defaultGroup->description = '';
Expand Down

0 comments on commit 147cc42

Please sign in to comment.