Merge pull request #26 from halkyon/sqlselect

Fixing SQLQuery to SQLSelect for master compatibility
This commit is contained in:
Damian Mooyman 2014-09-19 15:22:23 +12:00
commit c18262794f

View File

@ -24,7 +24,7 @@ class MultiFormObjectDecorator extends DataExtension {
'MultiFormSession' => 'MultiFormSession',
);
public function augmentSQL(SQLQuery &$query) {
public function augmentSQL(SQLSelect $query) {
// If you're querying by ID, ignore the sub-site - this is a bit ugly...
if(
strpos($query->where[0], ".`ID` = ") === false