X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fmail_fetch%2Foptions.php;fp=plugins%2Fmail_fetch%2Foptions.php;h=e74766f4cb119ee1d9d9f3f111e9da48d24de13e;hp=35eb094e0e6e6ad7b8cc5e185a2fd138145f80fa;hb=d9c537c4671d358f8dbf31f18ce5e8f8a694de53;hpb=372bcbb816818b4c0ad99c263793235a4ce7626e diff --git a/plugins/mail_fetch/options.php b/plugins/mail_fetch/options.php index 35eb094e..e74766f4 100644 --- a/plugins/mail_fetch/options.php +++ b/plugins/mail_fetch/options.php @@ -20,6 +20,11 @@ include_once(SM_PATH . 'plugins/mail_fetch/functions.php' ); include_once(SM_PATH . 'functions/imap_general.php'); include_once(SM_PATH . 'functions/forms.php'); +// don't load this page if this plugin is not enabled +// +global $plugins; +if (!in_array('mail_fetch', $plugins)) exit; + /* globals */ sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION);