Ignore:
Timestamp:
Apr 14, 2020, 11:13:32 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Improved code formatting.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/Form/Types/TimeDiff.php

    r1 r7  
    77  function OnView($Item)
    88  {
    9     if($Item['Value'] == null) $Output = '';
     9    if ($Item['Value'] == null) $Output = '';
    1010    else {
    1111      $Output = sprintf('%02d', floor($Item['Value'] / 3600 % 24)).':'.
     
    1313        sprintf('%02d', floor($Item['Value'] % 60));
    1414      $Days = floor($Item['Value'] / (60 * 60 * 24));
    15       if($Days > 0) $Output = $Days.' dnů '.$Output;
     15      if ($Days > 0) $Output = $Days.' dnů '.$Output;
    1616    }
    17     return($Output);
     17    return $Output;
    1818  }
    1919}
Note: See TracChangeset for help on using the changeset viewer.