openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 0ce16ae8a460f09a5a975178eff116484e921880
parent fc814a195dc5cfff644ac91c1f3065aae51841c4
Author: dankert <devnull@localhost>
Date:   Thu, 18 Mar 2010 03:13:11 +0100

Warnung bei unlink() vermeiden.

Diffstat:
objectClasses/File.class.php | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/objectClasses/File.class.php b/objectClasses/File.class.php @@ -584,7 +584,8 @@ EOF */ function saveValue( $value = '' ) { - @unlink( $this->tmpfile() ); + if ( is_file($this->tmpfile()) ) + @unlink( $this->tmpfile() ); $db = db_connection();