From dd64e310311eb1b5b08db28dfc9852d4c07a5f31 Mon Sep 17 00:00:00 2001 From: scyrma Date: Fri, 5 Sep 2008 10:47:34 +0000 Subject: [PATCH] MDL-14589: itemid should be 0 in user_* fileareas, but not in user_draft. --- lib/file/file_storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/file/file_storage.php b/lib/file/file_storage.php index dfa01a6419..8200f20ff0 100644 --- a/lib/file/file_storage.php +++ b/lib/file/file_storage.php @@ -606,7 +606,7 @@ class file_storage { } $newcontext = get_context_instance_by_id($newcontextid); - if (($newcontext->contextlevel == CONTEXT_USER) && ($newfilearea == 'user_private')) { + if (($newcontext->contextlevel == CONTEXT_USER) && ($newfilearea != 'user_draft')) { $newitemid = 0; } -- 2.39.5