greenstone.org greenstone wiki greenstone trac planet greenstone

Changeset 17931

Show
Ignore:
Timestamp:
2008-11-27 11:47:01 (1 month ago)
Author:
mdewsnip
Message:

Added check for empty "c" variable to prevent warnings on pages that aren't collection-specific (e.g. library home page).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gsdl/trunk/runtime-src/src/recpt/dynamicclassifieraction.cpp

    r16220 r17931  
    7676                                                      recptprotolistclass *protos, ostream &logout) 
    7777{ 
     78  // Some pages (e.g. the library home page) are not collection-specific 
     79  if (args["c"].empty()) 
     80  { 
     81    return; 
     82  } 
     83 
    7884  // A valid collection server is vital 
    7985  recptproto *collectproto = protos->getrecptproto (args["c"], logout);