Ticket #95 (closed Bug report: fixed)
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
Note: See
TracTickets for help on using
tickets.