Skip to content

Commit

Permalink
Merge pull request #1061 from ichier/fix_openbase_dir
Browse files Browse the repository at this point in the history
fix open_basedir restriction
  • Loading branch information
johannac authored Jan 12, 2023
2 parents 7c97f1c + 848da9b commit f8a49f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Organiser.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function orders()
*/
public function getFullLogoPathAttribute()
{
if ($this->logo_path && (file_exists(config('attendize.cdn_url_user_assets') . '/' . $this->logo_path) || file_exists(public_path($this->logo_path)))) {
if ($this->logo_path && (file_exists(public_path($this->logo_path)) || file_exists(config('attendize.cdn_url_user_assets') . '/' . $this->logo_path))) {
return config('attendize.cdn_url_user_assets') . '/' . $this->logo_path;
}

Expand Down

0 comments on commit f8a49f8

Please sign in to comment.