diff --git a/phpgwapi/inc/class.vfs_sql.inc.php b/phpgwapi/inc/class.vfs_sql.inc.php index fbebf2f124..f5ed9c099c 100644 --- a/phpgwapi/inc/class.vfs_sql.inc.php +++ b/phpgwapi/inc/class.vfs_sql.inc.php @@ -1173,6 +1173,12 @@ $owner_id = $data['owner_id']; } + /* This is correct. The ACL currently doesn't handle undefined values correctly */ + if (!$owner_id) + { + $owner_id = 0; + } + $user_id = $GLOBALS['phpgw_info']['user']['account_id']; /* They always have access to their own files */