mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
BUGFIX Fixed undefined notice regression
This commit is contained in:
parent
f1daa29592
commit
84ec3a2014
@ -1201,7 +1201,7 @@ class MSSQLDatabase extends SS_Database {
|
|||||||
|
|
||||||
if(is_array($query->getLimit())) {
|
if(is_array($query->getLimit())) {
|
||||||
$limitArr = $query->getLimit();
|
$limitArr = $query->getLimit();
|
||||||
$limit = $limitArr['limit'];
|
if(isset($limitArr['limit'])) $limit = $limitArr['limit'];
|
||||||
if(isset($limitArr['start'])) $offset = $limitArr['start'];
|
if(isset($limitArr['start'])) $offset = $limitArr['start'];
|
||||||
} else if(preg_match('/^([0-9]+) offset ([0-9]+)$/i', trim($query->getLimit()), $matches)) {
|
} else if(preg_match('/^([0-9]+) offset ([0-9]+)$/i', trim($query->getLimit()), $matches)) {
|
||||||
$limit = $matches[1];
|
$limit = $matches[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user