]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #2290 removes check for username
authorCash Costello <cash.costello@gmail.com>
Sun, 1 Jan 2012 22:40:17 +0000 (17:40 -0500)
committerCash Costello <cash.costello@gmail.com>
Sun, 1 Jan 2012 22:40:17 +0000 (17:40 -0500)
engine/classes/ElggDiskFilestore.php

index 11b2bd94740028171631afba5a216f3a8a172198..f003764814dc24b048762791a8ab275be21bbf55 100644 (file)
@@ -205,7 +205,7 @@ class ElggDiskFilestore extends ElggFilestore {
                        $owner = elgg_get_logged_in_user_entity();
                }
 
-               if ((!$owner) || (!$owner->username)) {
+               if (!$owner) {
                        $msg = elgg_echo('InvalidParameterException:MissingOwner',
                                array($file->getFilename(), $file->guid));
                        throw new InvalidParameterException($msg);