Skip to content

Commit

Permalink
Fixes crash reported with TestFlight
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyLB committed Jan 19, 2022
1 parent f8f4864 commit 0b68da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piwigo/Image/Details/ImageDetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ import piwigoKit
pageViewController!.dataSource = self

// Initialise flags
userHasUploadRights = CategoriesData.sharedInstance().getCategoryById(categoryId).hasUploadRights
userHasUploadRights = CategoriesData.sharedInstance().getCategoryById(categoryId)?.hasUploadRights ?? false

// Load initial image preview view controller
if let startingImage = imagePageViewController(atIndex: index) {
Expand Down

0 comments on commit 0b68da3

Please sign in to comment.