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

@@ -34,13 +34,13 @@ class Model_Product_Category extends ORM_OSB {
* @todo Consider if we should cache this
*/
public function products() {
$return = array();
$result = array();
foreach (ORM::factory('Product')->where_active()->find_all() as $po)
if (in_array($this->id,$po->categories()))
array_push($return,$po);
array_push($result,$po);
return $return;
return $result;
}
public function list_bylistgroup($cat) {