Skip to content

Commit

Permalink
Avoid accessing undefined variable
Browse files Browse the repository at this point in the history
This issue has been introduced recently[1], where we forgot the case
where the calendar plugin administration is *not* requested.

[1] <48df99c>
  • Loading branch information
cmb69 committed Jan 19, 2023
1 parent 35accee commit 48dd431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin.php
Expand Up @@ -25,7 +25,7 @@
}

if(function_exists('XH_wantsPluginAdministration') && XH_wantsPluginAdministration('calendar')
|| $calendar){
|| isset($calendar) && $calendar === "true"){
$plugin = basename(dirname(__FILE__),"/");

//Helper-functions
Expand Down

0 comments on commit 48dd431

Please sign in to comment.