Ignore:
Timestamp:
Mar 31, 2010, 6:32:40 PM (14 years ago)
Author:
george
Message:
  • Upraveno: Aktualizace fóra.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/forum/includes/functions_compress.php

    r400 r702  
    33*
    44* @package phpBB3
    5 * @version $Id: functions_compress.php 8780 2008-08-22 12:52:48Z acydburn $
     5* @version $Id$
    66* @copyright (c) 2005 phpBB Group
    77* @license http://opensource.org/licenses/gpl-license.php GNU Public License
     
    8181                        }
    8282                }
     83                else
     84                {
     85                        // $src does not exist
     86                        return false;
     87                }
    8388
    8489                return true;
     
    9095        function add_custom_file($src, $filename)
    9196        {
     97                if (!file_exists($src))
     98                {
     99                        return false;
     100                }
     101
    92102                $this->data($filename, file_get_contents($src), false, stat($src));
    93103                return true;
     
    156166        function compress_zip($mode, $file)
    157167        {
    158                 return $this->fp = @fopen($file, $mode . 'b');
     168                $this->fp = @fopen($file, $mode . 'b');
     169
     170                if (!$this->fp)
     171                {
     172                        trigger_error('Unable to open file ' . $file . ' [' . $mode . 'b]');
     173                }
    159174        }
    160175
Note: See TracChangeset for help on using the changeset viewer.