Update to CodeIgniter 2.1.0
This commit is contained in:
6
system/database/DB_active_rec.php
Executable file → Normal file
6
system/database/DB_active_rec.php
Executable file → Normal file
@@ -870,11 +870,11 @@ class CI_DB_active_record extends CI_DB_driver {
|
||||
*/
|
||||
public function limit($value, $offset = '')
|
||||
{
|
||||
$this->ar_limit = $value;
|
||||
$this->ar_limit = (int) $value;
|
||||
|
||||
if ($offset != '')
|
||||
{
|
||||
$this->ar_offset = $offset;
|
||||
$this->ar_offset = (int) $offset;
|
||||
}
|
||||
|
||||
return $this;
|
||||
@@ -1322,7 +1322,7 @@ class CI_DB_active_record extends CI_DB_driver {
|
||||
{
|
||||
if ($this->db_debug)
|
||||
{
|
||||
return $this->display_error('db_myst_use_index');
|
||||
return $this->display_error('db_must_use_index');
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user