Changeset 542

Show
Ignore:
Timestamp:
05/15/08 11:31:24 (7 months ago)
Author:
sidtheduck
Message:

+ fix for config_writable() function bug

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/plogger/install_functions.php

    r535 r542  
    107107                                $conf = create_config_file($form['db_host'],$form['db_user'],$form['db_pass'],$form['db_name'],$form['ftp_host'],$form['ftp_user'],$form['ftp_pass'],$form['ftp_path']); 
    108108                        } else { 
    109                                 $conf = create_config_file($form['db_host'],$form['db_user'],$form['db_pass'],$form['db_name']); 
     109                                $conf = create_config_file($form['db_host'],$form['db_user'],$form['db_pass'],$form['db_name'],"","","",""); 
    110110                        } 
    111111                        // if configuration file is writable, then set the values 
     
    366366        $cfg_file .= '// define("PLOGGER_EMBEDDED","");        // 1/0 (True/False) if set will overrule automatic check'."\n"; 
    367367        $cfg_file .= '// define("PLOGGER_LOCALE","");         // da_DK de et fr pl ro_RO tr ...etc.'."\n"; 
    368         if (ini_get('safe_mode')==1) { 
     368        if (ini_get('safe_mode')==1 && !empty($ftp_host)) { 
    369369        //if safe_mode enabled, write the FTP workaround information to plog-config.php with db information 
    370370                $cfg_file .= "\n";