Skip to content

Commit

Permalink
Fixed db limit in db_select_limit_assoc
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_ci@10540 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
dionet committed Jul 18, 2011
1 parent 919468f commit eaf9b26
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/helpers/database_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,14 @@ function &db_select_limit_assoc($sql,$numrows=0,$offset=0,$inputarr=false,$dieon
//$connect->SetFetchMode(ADODB_FETCH_ASSOC);
if ($numrows)
{
$sql .= " ";
if ($offset)
{
//$CI->db->limit($numrows,$offset);
$sql = $CI->db->_limit($sql, $numrows, $offset);
}
else
{
//$CI->db->limit($numrows);
$sql = $CI->db->_limit($sql, $numrows, 0);
}
}
if($inputarr)
Expand Down

0 comments on commit eaf9b26

Please sign in to comment.