updating dbo_adodb, fixes #3256

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5643 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-09-15 22:31:24 +00:00
parent 3c316511ac
commit bcc9c80b02

View file

@ -332,14 +332,12 @@ class DboAdodb extends DboSource {
* @param mixed $fields
* @return array
*/
function fields(&$model, $alias = null, $fields = array(), $quote = true) {
function fields(&$model, $alias = null, $fields = null, $quote = true) {
if (empty($alias)) {
$alias = $model->name;
}
if (is_array($fields)) {
$fields = $fields;
} else {
if (!is_array($fields)) {
if ($fields != null) {
if (strpos($fields, ',')) {
$fields = explode(',', $fields);