Changeset 9267

Show
Ignore:
Timestamp:
08/15/08 11:28:30 (4 months ago)
Author:
afz
Message:

prevent showing warning message when getmyuid is disabled

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/0.8/jaws/html/include/Jaws/Utils.php

    r9158 r9267  
    212212    { 
    213213        $result = false; 
    214         $php_as_nobody = (getmyuid() != fileowner($path)); 
     214        $php_as_nobody = (@getmyuid() != fileowner($path)); 
    215215        $mode = (is_null($mode)? ($php_as_nobody? 0666 : 0644) : $mode); 
    216216        $mask = umask(0); 
     
    252252 
    253253        if ($result) { 
    254             $php_as_nobody = (getmyuid() != fileowner($path)); 
     254            $php_as_nobody = (@getmyuid() != fileowner($path)); 
    255255            $mode = (is_null($mode)? ($php_as_nobody? 0777 : 0755) : $mode); 
    256256            Jaws_Utils::chmod($path, $mode);