]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/action-
- Major change in LOAD_EMAIL_TEMPLATE(). The deprecated switch() block has
[mailer.git] / inc / modules / guest / action-
index 38264c411fcd9e63a62f675fb9f7dcb62b788e02..2c6d438a15e02441c96ec9c7657bfffa226f69e7 100644 (file)
@@ -43,14 +43,12 @@ ADD_DESCR("guest", basename(__FILE__));
 
 // Load the include file
 $INC = sprintf(PATH."inc/modules/guest/what-%s.php", $GLOBALS['what']);
-if (file_exists($INC))
-{
+if (FILE_READABLE($INC)) {
        // Ok, we finally load the guest action module
        include($INC);
-}
- else
-{
+} else {
        ADD_FATAL(GUEST_404_ACTION_1.$GLOBALS['what'].GUEST_404_ACTION_2);
 }
+
 //
 ?>