Update to CodeIgniter 2.1.0

This commit is contained in:
Karsten Heiken
2011-12-04 14:24:27 +01:00
parent fde35df5bd
commit 79c236dc49
149 changed files with 4384 additions and 590 deletions

6
system/database/DB_active_rec.php Executable file → Normal file
View 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;