Ticket #95 (closed Bug report: fixed)

Opened 13 years ago

Last modified 12 years ago

there is too many define('SSL_AVAILABLE') in include/common.php for php5 (i guess)

Reported by: kaouete@… Owned by: max-horvath
Priority: normal Milestone: WifiDog Auth Server 1.0
Component: Auth server, Other Version: Auth Server SVN
Keywords: Cc:

Description

Hi, when i load wifidog, i get this error :

Notice: Constant SSL_AVAILABLE already defined in /var/www/wifidog/include/common.php on line 90

i think it is because php5 doesnt want multiple define for the same constant, so a workaround is :

//define("SSL_AVAILABLE", false);

if (Server::getCurrentServer(true) != null) {
    if (Server::getCurrentServer(true)->isSSLAvailable()) {
        define("SSL_AVAILABLE", true);
    } else {
        define("SSL_AVAILABLE", false);
    }
} else {
    define("SSL_AVAILABLE", false);
}

line 88-90 of include/common.php

Change History

Changed 13 years ago by max-horvath

  • owner set to max-horvath
  • status changed from new to assigned
  • milestone set to WifiDog Auth Server 1.0

Changed 13 years ago by max-horvath

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in revision [986].

Note: See TracTickets for help on using tickets.