diff options
Diffstat (limited to 'modules/gallery/helpers/photo.php')
| -rw-r--r-- | modules/gallery/helpers/photo.php | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/modules/gallery/helpers/photo.php b/modules/gallery/helpers/photo.php index d1d8fb1f..01cf5278 100644 --- a/modules/gallery/helpers/photo.php +++ b/modules/gallery/helpers/photo.php @@ -76,7 +76,7 @@ class photo_Core {      $photo->title = $title;      $photo->description = $description;      $photo->name = $name; -    $photo->owner_id = $owner_id ? $owner_id : user::active(); +    $photo->owner_id = $owner_id ? $owner_id : identity::active_user()->id;      $photo->width = $image_info[0];      $photo->height = $image_info[1];      $photo->mime_type = empty($image_info['mime']) ? "application/unknown" : $image_info['mime']; | 
