owncloud/core — pull request #2320 by ceri (2013-03-14 16:33:23+00:00)
Title: Fix erroneous email when folders are shared

itemType is never "dir"; it's either "file" or "folder".
I release this patch under the MIT license.