fixes if code style

This commit is contained in:
Dirk Adler 2014-10-09 22:11:08 +02:00
parent 57ee785274
commit c450f5a322

View File

@ -1800,7 +1800,7 @@ class Translatable extends DataExtension implements PermissionProvider {
$parentFilter = null;
if (Config::inst()->get('SiteTree', 'nested_urls')) {
if ($this->owner->ParentID) {
if($this->owner->ParentID) {
$parentFilter = " AND \"SiteTree\".\"ParentID\" = {$this->owner->ParentID}";
} else {
$parentFilter = ' AND "SiteTree"."ParentID" = 0';