mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #9813 from 3Dgoo/patch-1
Fix DataQuery::exists() not working correctly
This commit is contained in:
commit
20686e4eda
@ -485,7 +485,7 @@ class DataQuery
|
|||||||
$result = reset($row);
|
$result = reset($row);
|
||||||
|
|
||||||
// Checking for 't' supports PostgreSQL before silverstripe/postgresql@2.2
|
// Checking for 't' supports PostgreSQL before silverstripe/postgresql@2.2
|
||||||
return $result === true || $result === 1 || $result === 't';
|
return $result === true || $result === 1 || $result === '1' || $result === 't';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user