small fix for logMessage()

This commit is contained in:
Steffen Schröder 2013-12-09 15:44:28 +01:00
parent e9e1fb94d9
commit 6c28933a48

View File

@ -37,7 +37,7 @@ if (LOG_WRITE_CURRENT_FILE) {
// Log function
function logMessage($message) {
$message .= PHP_EOL;
file_put_contents(LOG_CURRENT_FILE, $message, FILE_APPEND);
if (defined('LOG_CURRENT_FILE')) file_put_contents(LOG_CURRENT_FILE, $message, FILE_APPEND);
file_put_contents(LOG_FILE, $message, FILE_APPEND);
echo $message;
}