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

Legend:

Unmodified
Added
Removed
  • trunk/Common/Form/Types/Password.php

    r873 r874  
    1212    for ($I = 0; $I < 6; $I++)
    1313      $Output .= '*';
    14     return ($Output);
     14    return $Output;
    1515  }
    1616
     
    1818  {
    1919    $Output = '<input type="password" name="'.$Item['Name'].'" value=""/>';
    20     return ($Output);
     20    return $Output;
    2121  }
    2222
     
    3939    }
    4040    */
    41     return ($Result);
     41    return $Result;
    4242  }
    4343
    4444  function OnSaveDb($Item)
    4545  {
    46     if ($Item['Value'] == '') return ('');
     46    if ($Item['Value'] == '') return '';
    4747    else {
    4848      $PasswordHash = new PasswordHash();
    49       return ($PasswordHash->Hash($Item['Value'], $Item['Values']['Salt']));
     49      return $PasswordHash->Hash($Item['Value'], $Item['Values']['Salt']);
    5050    }
    5151  }
     
    5353  function OnLoadDb($Item)
    5454  {
    55     return ('');
     55    return '';
    5656  }
    5757}
Note: See TracChangeset for help on using the changeset viewer.