* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009, 2010 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
- // Skip rewriting for configured modules
- if (isInStringIgnoreCase(getModule(), getConfig('rewrite_skip')) !== false) return $code;
+ // Skip rewriting for configured or empty modules
+ if ((getModule() == '') || (isInStringIgnoreCase(getModule(), getConfig('rewrite_skip')) !== false)) {
+ return $code;
+ } // END - if
$code = str_replace($rewrite . '/modules.php?module=', $target, $code);
} // END - foreach
// Do we have an URL linked to mxchange.org?
$code = str_replace($rewrite . '/modules.php?module=', $target, $code);
} // END - foreach
// Do we have an URL linked to mxchange.org?