mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
3c316511ac
commit
bcc9c80b02
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue