Changeset 1585

Show
Ignore:
Timestamp:
04/28/08 10:00:04 (7 months ago)
Author:
moeffju
Message:

Really fix #182.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/system/classes/utils.php

    r1574 r1585  
    734734    public static function glob( $pattern, $flags = 0 ) 
    735735    { 
    736         if ( ! defined( 'GLOB_NOBRACE' ) || ! ( $flags & GLOB_BRACE == GLOB_BRACE ) ) { 
     736        if ( ! defined( 'GLOB_NOBRACE' ) || ! ( ( $flags & GLOB_BRACE ) == GLOB_BRACE ) ) { 
    737737            // this platform supports GLOB_BRACE out of the box 
    738738            $results= glob( $pattern, $flags ); 
     
    774774            'PiB' 
    775775            ); 
    776             $tick = 0; 
    777             $max_tick = count($sizes) - 1; 
    778             while($bytesize > 1024 && $tick < $max_tick) { 
    779                 $tick++; 
    780                 $bytesize /= 1024; 
    781             } 
    782  
    783             return sprintf('%0.2f%s', $bytesize, $sizes[$tick]); 
     776        $tick = 0; 
     777        $max_tick = count($sizes) - 1; 
     778        while($bytesize > 1024 && $tick < $max_tick) { 
     779            $tick++; 
     780            $bytesize /= 1024; 
     781        } 
     782 
     783        return sprintf('%0.2f%s', $bytesize, $sizes[$tick]); 
    784784    } 
    785785