Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

686
 
733
 
733
 
category_tree.php
_> 11 <?php
  22 /*
<> 3 -  $Id: category_tree.php 686 2006-08-14 22:33:22Z hpdl $
   3+  $Id: category_tree.php 733 2006-08-20 15:32:32Z 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) {