Ignore:
Timestamp:
2004-05-11T13:53:19+12:00 (20 years ago)
Author:
kjdon
Message:

removed a strange piece of code: 'return true; return false;' :-) site_cfg_read(gsdlhome, httpdomain, httpprefix) no longer tests whether these strings are empty (and then return true anyway) and now returns false only if it couldn't configure. the calling code now must check whether gsdlhome is empty before using it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/collectset.cpp

    r4372 r7302  
    5151  // cgiwrapper)
    5252  if (site_cfg_read (gsdlhome, httpdomain, httpprefix)) {
    53     if (directory_exists(gsdlhome)) {
     53    if (!gsdlhome.empty() && directory_exists(gsdlhome)) {
    5454      collectdir = filename_cat (gsdlhome, "collect");
    5555      if (read_dir (collectdir, collections)) {
Note: See TracChangeset for help on using the changeset viewer.