cvs: pearweb /include pear-category.php

From: Date: Sat, 29 Dec 2001 11:35:08 +0000
Subject: cvs: pearweb /include pear-category.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1764@lists.php.net to get a copy of this message
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)"; }

« previous php.pear.cvs (#1764) next »