summaryrefslogtreecommitdiff
path: root/includes/file.inc
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2007-03-27 05:13:55 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2007-03-27 05:13:55 +0000
commitf7440d4d73ec57219af232c135be3b2567dda45f (patch)
treea6b7d947eda1c7bfc2197bfb584f7b17143c97a5 /includes/file.inc
parentf2ca29071fe33603cf22f1603a3e6a61ee9c0814 (diff)
downloadbrdo-f7440d4d73ec57219af232c135be3b2567dda45f.tar.gz
brdo-f7440d4d73ec57219af232c135be3b2567dda45f.tar.bz2
#130971: Kitchen sink (E_NOTICE compliance / Code style / Bugfix in book toc)
Diffstat (limited to 'includes/file.inc')
-rw-r--r--includes/file.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/file.inc b/includes/file.inc
index 5afc66b0d..18bf144cd 100644
--- a/includes/file.inc
+++ b/includes/file.inc
@@ -382,7 +382,7 @@ function file_copy(&$source, $dest = 0, $replace = FILE_EXISTS_RENAME) {
@chmod($dest, 0664);
}
- if (is_object($file)) {
+ if (isset($file) && is_object($file)) {
$file->filename = $basename;
$file->filepath = $dest;
$source = $file;