mikecao / sparrow

A simple database toolkit for PHP
MIT License
289 stars 68 forks source link

where() array bug #3

Closed AbeEstrada closed 12 years ago

AbeEstrada commented 12 years ago

Using the example in the 'README' file

$where = array('id' => 123, 'name' => 'bob');

echo $db->from('user')
    ->where($where)
    ->select()
    ->sql();

I received a notice:

Notice: Undefined offset: 1 in sparrow.php on line 164