@@ -20,9 +20,9 @@ discard block |
||
20 | 20 | $objectsWithImage = $instanceofclass::get()->filter($idfield, $this->owner->ID); |
21 | 21 | foreach ($objectsWithImage as $objectWithImage) { |
22 | 22 | foreach ($stages as $stage) { |
23 | - $suffix = '_'.$stage; |
|
23 | + $suffix = '_' . $stage; |
|
24 | 24 | $suffix = str_replace('_Stage', '', $suffix); |
25 | - $sql = "UPDATE `SiteTree{$suffix}` SET LastEdited=NOW() where ID=".$objectWithImage->ID; |
|
25 | + $sql = "UPDATE `SiteTree{$suffix}` SET LastEdited=NOW() where ID=" . $objectWithImage->ID; |
|
26 | 26 | DB::query($sql); |
27 | 27 | } |
28 | 28 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $instanceofclass = Injector::inst()->create($clazz); |
38 | 38 | $objectsWithImage = $instanceofclass::get()->filter($idfield, $this->owner->ID); |
39 | 39 | foreach ($objectsWithImage as $objectWithImage) { |
40 | - $sql = "UPDATE `$clazz` SET LastEdited=NOW() where ID=".$objectWithImage->ID; |
|
40 | + $sql = "UPDATE `$clazz` SET LastEdited=NOW() where ID=" . $objectWithImage->ID; |
|
41 | 41 | DB::query($sql); |
42 | 42 | |
43 | 43 | } |