Changeset 17931

Show
Ignore:
Timestamp:
27.11.2008 11:47:01 (11 years 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:
1 modified

Legend:

Unmodified
Added
Removed
  • 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);