[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-cvs
Subject:    [PEAR-CVS] cvs: pearweb /include pear-category.php
From:       "Martin Jansen" <mail () martin-jansen ! de>
Date:       2001-12-29 11:35:08
[Download RAW message or body]

mj		Sat Dec 29 06:35:08 2001 EDT

  Modified files:              
    /pearweb/include	pear-category.php 
  Log:
  * There can't hardly be 0.5 categories.
  
  
Index: pearweb/include/pear-category.php
diff -u pearweb/include/pear-category.php:1.5 pearweb/include/pear-category.php:1.6
--- pearweb/include/pear-category.php:1.5	Wed Dec 26 14:29:25 2001
+++ pearweb/include/pear-category.php	Sat Dec 29 06:35:07 2001
@@ -39,6 +39,9 @@
         $tree[$parent]['children'][] = $id;
         $tree[$id]['parent'] = $parent;
         $subcats = ($cat_right - $cat_left - 1) / 2;
+        if ($subcats < 1 && $subcats > 0) {
+            $subcats = 1;
+        }
         if ($subcats > 0) {
             $name = "$name ($subcats)";
         }



-- 
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, e-mail: pear-cvs-unsubscribe@lists.php.net
For additional commands, e-mail: pear-cvs-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic