Changeset 746 for trunk/lib/App.inc.php


Ignore:
Timestamp:
May 31, 2021 1:51:18 AM (3 years ago)
Author:
anonymous
Message:

Add brackets to avoid ambiguity in return value

File:
1 edited

Legend:

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

    r743 r746  
    429429            // But not if all DB credentials have been defined already by other means.
    430430            if ($this->cli && '' != $this->getParam('db_auth_file') && (!$this->getParam('db_server') || !$this->getParam('db_name') || !$this->getParam('db_user') || !$this->getParam('db_pass'))) {
    431                 if (false !== $db_auth_file = stream_resolve_include_path($this->getParam('db_auth_file'))) {
     431                if (false !== ($db_auth_file = stream_resolve_include_path($this->getParam('db_auth_file')))) {
    432432                    if (is_readable($db_auth_file)) {
    433433                        $db_auth = json_decode(file_get_contents($db_auth_file), true);
     
    622622
    623623        // Set the application version if defined.
    624         if (false !== $site_version_file = stream_resolve_include_path($this->getParam('site_version_file'))) {
     624        if (false !== ($site_version_file = stream_resolve_include_path($this->getParam('site_version_file')))) {
    625625            if (mb_strpos($site_version_file, '.json') !== false) {
    626626                $version_json = json_decode(trim(file_get_contents($site_version_file)), true);
Note: See TracChangeset for help on using the changeset viewer.