PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB_QueryTool » Bug #1038

joins don't work becaus second array_merge parameter line 1451

Details

Submitted2004-03-19 16:12 UTC
Fromjoni at xingoo dot info
Assignedquipo
StatusClosed
PackageDB_QueryTool
PHP Version5.0.0b4 (beta4)
OSdebian woody php5rc1
Roadmaps(Not assigned)

Comments

[2004-03-19 16:12 UTC] joni at xingoo dot info

Description:
------------
i always get erros if i perform setJoin. problem is line 1451 of Query.php.

array_merge($this->getJoin('tables'),$this->table)

$this->table isn't a array, or may it's not. if $this->table can be an array replace it with:

array_merge($this->getJoin('tables'),is_array($this->table) ? $this->table : array($this->table))

if $this->table isn't a array, this code will wirk:

array_merge($this->getJoin('tables'),array($this->table))

maybe someone can fix ist?