Changeset 17931


Ignore:
Timestamp:
2008-11-27T11:47:01+13:00 (15 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).

File:
1 edited

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);
Note: See TracChangeset for help on using the changeset viewer.