Ignore:
Timestamp:
Apr 6, 2020, 11:56:19 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Do not use parenthesis around returned value.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/Update.php

    r873 r874  
    2323    $DbResult = $this->Database->select($this->VersionTable, '*', 'Id=1');
    2424    $Version = $DbResult->fetch_assoc();
    25     return ($Version['Revision']);
     25    return $Version['Revision'];
    2626  }
    2727
     
    2929  {
    3030    $DbResult = $this->Database->query('SHOW TABLES LIKE "'.$this->VersionTable.'"');
    31     return ($DbResult->num_rows > 0);
     31    return $DbResult->num_rows > 0;
    3232  }
    3333
    3434  function IsUpToDate()
    3535  {
    36     return ($this->Revision <= $this->GetDbVersion());
     36    return $this->Revision <= $this->GetDbVersion();
    3737  }
    3838
     
    5656        $TraceItem['Revision'].' WHERE `Id`=1');
    5757    }
    58     return ($Output);
     58    return $Output;
    5959  }
    6060
     
    8181    echo($Query.';<br/>');
    8282    flush();
    83     return ($this->Database->query($Query));
     83    return $this->Database->query($Query);
    8484  }
    8585}
Note: See TracChangeset for help on using the changeset viewer.