Get rid of unneeded data copying ( = = someFunction()).
This commit is contained in:
parent
ad9ab95c05
commit
7425aa0654
|
@ -86,9 +86,9 @@ class TransportRecord
|
||||||
array('trtype'=>$trtype, 'direction'=>$direction));
|
array('trtype'=>$trtype, 'direction'=>$direction));
|
||||||
$trec->recalled = TRUE;
|
$trec->recalled = TRUE;
|
||||||
if (!isset($defaults['title'])) {
|
if (!isset($defaults['title'])) {
|
||||||
$defaults['title'] = $r = $trec->getTitle();
|
$defaults['title'] = $trec->getTitle();
|
||||||
if (PEAR::isError($r)) {
|
if (PEAR::isError($defaults['title'])) {
|
||||||
return $r;
|
return $defaults['title'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$id = $trec->dbc->nextId("{$trec->transTable}_id_seq");
|
$id = $trec->dbc->nextId("{$trec->transTable}_id_seq");
|
||||||
|
|
Loading…
Reference in New Issue