MINOR Tabs must be used to indent lines and line lenght preferable less than 100chars.

This commit is contained in:
Stig Lindqvist 2012-10-06 10:27:02 +13:00
parent cc3aa49f9f
commit 57a95c1484
2 changed files with 17 additions and 17 deletions

View File

@ -96,10 +96,10 @@ class WidgetAreaEditor extends FormField {
// \"ParentID\" = '0' is for the new page
$widget = DataObject::get_one(
'Widget',
"(\"ParentID\" = '{$record->$name()->ID}' OR \"ParentID\" = '0') AND \"Widget\".\"ID\" = '$newWidgetID'"
"(\"ParentID\" = '{$record->$name()->ID}' OR ".
"\"ParentID\" = '0') AND \"Widget\".\"ID\" = '$newWidgetID'"
);
// check if we are updating an existing widget
if($widget && isset($missingWidgets[$widget->ID])) {
unset($missingWidgets[$widget->ID]);