X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Faction-sponsor.php;h=fcb23d131ddae7cb6562886c117b9fd9e6f6fb1e;hb=c3ea029c279923888cebf39020fe152c4540fbe8;hp=b4cbba35c9187ff151e9bd89a39ed68a06d291ce;hpb=d18075f375db1b9db40773cdf80a5d6f2c36cd3a;p=mailer.git diff --git a/inc/modules/admin/action-sponsor.php b/inc/modules/admin/action-sponsor.php index b4cbba35c9..fcb23d131d 100644 --- a/inc/modules/admin/action-sponsor.php +++ b/inc/modules/admin/action-sponsor.php @@ -41,8 +41,8 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) ADD_DESCR("admin", basename(__FILE__)); // Load the include file -$INC = sprintf(PATH."inc/modules/admin/what-%s.php", $GLOBALS['what']); -if (file_exists($INC)) { +$INC = sprintf("%sinc/modules/admin/what-%s.php", PATH, $GLOBALS['what']); +if ((file_exists($INC)) && (is_readable($INC))) { // Ok, we finally load the admin action module include($INC); } else {