Fix: missing parameters
This commit is contained in:
parent
3ca844b3df
commit
680fd32d23
@ -1640,6 +1640,8 @@ abstract class CommonObject
|
|||||||
|
|
||||||
$justsource=false;
|
$justsource=false;
|
||||||
$justtarget=false;
|
$justtarget=false;
|
||||||
|
$withtargettype=false;
|
||||||
|
$withsourcetype=false;
|
||||||
|
|
||||||
if (! empty($sourceid) && ! empty($sourcetype) && empty($targetid))
|
if (! empty($sourceid) && ! empty($sourcetype) && empty($targetid))
|
||||||
{
|
{
|
||||||
@ -1649,7 +1651,7 @@ abstract class CommonObject
|
|||||||
if (! empty($targetid) && ! empty($targettype) && empty($sourceid))
|
if (! empty($targetid) && ! empty($targettype) && empty($sourceid))
|
||||||
{
|
{
|
||||||
$justtarget=true;
|
$justtarget=true;
|
||||||
if (! empty($sourcetype)) $withsourcetype;
|
if (! empty($sourcetype)) $withsourcetype=true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$sourceid = (! empty($sourceid) ? $sourceid : $this->id);
|
$sourceid = (! empty($sourceid) ? $sourceid : $this->id);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user