Consistent use of return , payment refund handling

This commit is contained in:
Deon George
2013-04-05 23:50:08 +11:00
parent 43dfd88bce
commit 52d9005b64
30 changed files with 255 additions and 210 deletions

View File

@@ -97,14 +97,14 @@ class Email_Template {
}
public function variables() {
$return = array();
$result = array();
foreach ($this->components as $v)
foreach ($this->etto->variables($v) as $x => $y)
if (! in_array($y,$return))
array_push($return,$y);
if (! in_array($y,$result))
array_push($result,$y);
return $return;
return $result;
}
public function send(array $admin=array()) {