Consistent use of return , payment refund handling
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user