BUGFIX Fixed undefined notice regression

This commit is contained in:
Sean Harvey 2012-05-08 17:41:01 +12:00
parent f1daa29592
commit 84ec3a2014

View File

@ -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];