Fix: missing parameters

This commit is contained in:
Regis Houssin
2012-07-08 12:24:13 +02:00
parent 3ca844b3df
commit 680fd32d23
2 changed files with 14 additions and 12 deletions

View File

@@ -1640,6 +1640,8 @@ abstract class CommonObject
$justsource=false;
$justtarget=false;
$withtargettype=false;
$withsourcetype=false;
if (! empty($sourceid) && ! empty($sourcetype) && empty($targetid))
{
@@ -1649,7 +1651,7 @@ abstract class CommonObject
if (! empty($targetid) && ! empty($targettype) && empty($sourceid))
{
$justtarget=true;
if (! empty($sourcetype)) $withsourcetype;
if (! empty($sourcetype)) $withsourcetype=true;
}
$sourceid = (! empty($sourceid) ? $sourceid : $this->id);