~ubuntu-branches/ubuntu/trusty/nagios3/trusty

« back to all changes in this revision

Viewing changes to cgi/notifications.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt
  • Date: 2009-08-16 14:14:23 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090816141423-efjzq1r3jekwd7l7
Tags: 3.2.0-1
* New upstream release (Closes: #542957)
  - Timeperiods should work as expected now (Closes: #539882)
  - Recovery notifications fixed (Closes: #543657)
* Update standards version 
  - Add README.source
* Manpage errors fixed (Closes: #540554)
* Split up the webfrontend into its own package (Closes: #479338, #485466)

Show diffs side-by-side

added added

removed removed

Lines of Context:
451
451
                        display_header=FALSE;
452
452
                }
453
453
 
 
454
        /* 
 
455
         * Set some default values if not already set.
 
456
         * Done here as they won't be set if variable
 
457
         * not provided via cgi parameters 
 
458
         * Only required for hosts & contacts, not services 
 
459
         * as there is no service_name=all option
 
460
         */
 
461
        if(query_type == FIND_HOST && strlen(query_host_name) == 0) {
 
462
                query_host_name="all";
 
463
                find_all=TRUE;
 
464
                }
 
465
        if(query_type == FIND_CONTACT && strlen(query_contact_name) == 0) {
 
466
                query_contact_name="all";
 
467
                find_all=TRUE;
 
468
                }
 
469
 
454
470
        /* free memory allocated to the CGI variables */
455
471
        free_cgivars(variables);
456
472