Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

754
 
757
 
757
 
category_tree.php
_> 11 <?php
  22 /*
<> 3 -  $Id: category_tree.php 754 2006-08-23 11:56:56Z hpdl $
   3+  $Id: category_tree.php 757 2006-08-23 12:22:54Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
235235       return false;
  236236     }
  237237 
<>  238+    function getChildren($category_id, &$array) {
   239+      foreach ($this->data as $parent => $categories) {
   240+        if ($parent == $category_id) {
   241+          foreach ($categories as $id => $info) {
   242+            $array[] = $id;
   243+            $this->getChildren($id, $array);
   244+          }
   245+        }
   246+      }
   247+
   248+      return $array;
   249+    }
   250+
<_ 238251     function getData($id) {
  239252       foreach ($this->data as $parent => $categories) {
  240253         foreach ($categories as $category_id => $info) {