}
// Output verbose SQL table for extension
-function addExtensionVerboseSqlTable ($title = '', $dashed = '', $switch = false, $width = '100%') {
+function addExtensionVerboseSqlTable ($title = '{--ADMIN_SQLS_EXECUTED_ON_REMOVAL--}', $dashed = '', $switch = false, $width = '100%') {
// Empty title?
if (empty($title)) {
- // Then fix it to default
- $title = '{--ADMIN_SQLS_EXECUTED_ON_REMOVAL--}';
+ // Then abort here
+ debug_report_bug(__FUNCTION__, __LINE__, 'title is empty.');
} // END - if
// Init variables
// Send mail out to an email address
function sendEmail ($toEmail, $subject, $message, $isHtml = 'N', $mailHeader = '') {
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'toEmail=' . $toEmail . ',subject=' . $subject . ',isHtml=' . $isHtml);
+ // Empty parameters should be avoided, so we need to find them
+ if (empty($isHtml)) {
+ // isHtml is empty
+ debug_report_bug(__FUNCTION__, __LINE__, 'isHtml is empty.');
+ } // END - if
// Set from header
if ((!isInStringIgnoreCase('@', $toEmail)) && ($toEmail > 0)) {
// Does the user exist?
- if (fetchUserData($toEmail)) {
+ if ((isExtensionActive('user')) && (fetchUserData($toEmail))) {
// Get the email
$toEmail = getUserData('email');
} else {
}
} // END - if
- // Fix HTML parameter (default is no!)
- if (empty($isHtml)) {
- $isHtml = 'N';
- } // END - if
-
// Debug mode enabled?
if (isDebugModeEnabled()) {
// In debug mode we want to display the mail instead of sending it away so we can debug this part
return;
} elseif ((!isWhatSet()) || (getWhat() == '')) {
// Empty what value detected!
- setWhat('welcome');
+ debug_report_bug(__FUNCTION__, __LINE__, 'what is empty.');
}
// A valid sponsor login and we are allowed to enter this module so let's