Skip to:
Content

bbPress.org

Ticket #3398: 3398.patch

File 3398.patch, 655 bytes (added by johnjamesjacoby, 6 years ago)
  • src/includes/common/formatting.php

     
    694694                // so there's only two bits of calculation below:
    695695                } else {
    696696
     697                        // Default count values
     698                        $count  = 0;
     699                        $count2 = 0;
     700
    697701                        // Step one: the first chunk
    698702                        for ( $i = 0, $j = count( $chunks ); $i < $j; ++$i ) {
    699703                                $seconds = $chunks[ $i ][0];
     
    726730                                        }
    727731                                }
    728732
    729                                 // No output, so happened right now
    730                                 if ( ! (int) trim( $output ) ) {
     733                                // Empty counts, so fallback to right now
     734                                if ( empty( $count ) && empty( $count2 ) ) {
    731735                                        $output = $right_now_text;
    732736                                }
    733737                        }