if (SQL_NUMROWS($result) == 1) {
// Yes, he is!
if ((getWhat() == 'add_sponsor') || ($update)) {
- // Already found!
+ // Already found
$ALREADY = true;
} else {
// Update his data
$result = SQL_QUERY_ESC($sql, $DATA['values'], __FUNCTION__, __LINE__);
} // END - if
} else {
- // Error found!
+ // Error detected
$message = getMessageFromIndexedArray('{--SPONSOR_DATA_NOT_SAVED--}', 'failed', $messageArray);
loadTemplate('admin_settings_saved', false, $message);
}
// Then use it
$ret = getMessage($constantName);
} else {
- // Not found!
+ // Not found
//* DEBUG: */ debug_report_bug(__FUNCTION__, __LINE__, sprintf("Unknown status %s detected.", $status));
logDebugMessage(__FUNCTION__, __LINE__, sprintf("Unknown status %s detected.", $status));
$ret = getMaskedMessage('ACCOUNT_STATUS_UNKNOWN', $status);
// Every sponsor action will output nothing directly. It will be written into $GLOBALS['sponsor_output']!
loadIncludeOnce($INC);
} else {
- // File not found!
+ // File not found
$GLOBALS['sponsor_output'] .= loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_CONTENT_404', $what));
}