[eluser]xonorageous[/eluser]
I've just started debugging system/database/DB_active_rec.php and the problem seems to be there.
using the following code:
Code:
public function get_where($table = '', $where = null, $limit = null, $offset = null)
{
dump( $where );
if ($table != '')
{
$this->from($table);
}
if ( ! is_null($where))
{
dump( $this->where($where)); exit();
}
if ( ! is_null($limit))
{
$this->limit($limit, $offset);
}
$sql = $this->_compile_select();
$result = $this->query($sql);
$this->_reset_select();
return $result;
}
The dump of $where is giving me
Code:
Dump => array(1) {
["login"] => string(9) "A.Madison"
}
However the second dump on $this->where($where) is returning
Code:
["ar_where"] => array(1) {
[0] => string(11) "login = ''"
}
Why is the value of the login key disappearing ?