Changeset 726


Ignore:
Timestamp:
May 24, 2020 5:19:18 PM (4 years ago)
Author:
anonymous
Message:
 
Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r725 r726  
    428428            // DB credentials for CLI scripts stored in a JSON file with read rights given only to the user who will be executing the scripts: -r--------
    429429            // But not if all DB credentials have been defined already by other means.
    430             if ($this->cli && (!$this->getParam('db_server') || !$this->getParam('db_name') || !$this->getParam('db_user') || !$this->getParam('db_pass'))) {
     430            if ($this->cli && '' != $this->getParam('db_auth_file') && (!$this->getParam('db_server') || !$this->getParam('db_name') || !$this->getParam('db_user') || !$this->getParam('db_pass'))) {
    431431                if (false !== $db_auth_file = stream_resolve_include_path($this->getParam('db_auth_file'))) {
    432432                    if (is_readable($db_auth_file)) {
  • trunk/lib/Lock.inc.php

    r718 r726  
    267267    public function set($record_table, $record_key, $record_val, $title='')
    268268    {
     269        $app =& App::getInstance();
    269270        $db =& DB::getInstance();
    270271
Note: See TracChangeset for help on using the changeset viewer.