Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50769 - website/public_html/beta/doc
From: daniel_james_at_[hidden]
Date: 2009-01-25 12:40:32


Author: danieljames
Date: 2009-01-25 12:40:32 EST (Sun, 25 Jan 2009)
New Revision: 50769
URL: http://svn.boost.org/trac/boost/changeset/50769

Log:
Avoid an error when a library doesn't have any categories.
Text files modified:
   website/public_html/beta/doc/libraries.php | 10 ++++++----
   1 files changed, 6 insertions(+), 4 deletions(-)

Modified: website/public_html/beta/doc/libraries.php
==============================================================================
--- website/public_html/beta/doc/libraries.php (original)
+++ website/public_html/beta/doc/libraries.php 2009-01-25 12:40:32 EST (Sun, 25 Jan 2009)
@@ -110,10 +110,12 @@
 function libcategories($lib, $categories)
 {
   $first = true;
- foreach($lib['category'] as $category_name) {
- if(!$first) echo ', ';
- $first = false;
- category_link($category_name, $categories[$category_name]);
+ if($lib['category']) {
+ foreach($lib['category'] as $category_name) {
+ if(!$first) echo ', ';
+ $first = false;
+ category_link($category_name, $categories[$category_name]);
+ }
   }
   if($first) echo ' ';
 }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk