Ticket #17069: www_includes_common.inc.diff

File www_includes_common.inc.diff, 630 bytes (added by blb@…, 16 years ago)

diff to www/includes/common.inc

  • www/includes/common.inc

     
    6767
    6868    $script = basename($_SERVER['PHP_SELF']);
    6969   
    70     $portsdb_connection = mysql_connect($portsdb_host, $portsdb_user, $portsdb_passwd);
     70    $portsdb_connection = FALSE;
     71    if (function_exists('mysql_connect')) {
     72        $portsdb_connection = mysql_connect($portsdb_host, $portsdb_user, $portsdb_passwd);
     73    }
    7174    if ($portsdb_connection === FALSE) {
    7275        switch ($script) {
    7376            case "index.php":