Commit 1c6589aa authored by Carsten  Rose's avatar Carsten Rose
Browse files

Bug #4904 / Undefined Index: DIRTY_FE_USER - PHP problem that constants cant...

Bug #4904 / Undefined Index: DIRTY_FE_USER - PHP problem that constants cant be replaced inside of single ticks. Fixed.
parent cedb98f7
......@@ -195,7 +195,7 @@ class Dirty {
if (empty($recordDirty[DIRTY_FE_USER])) {
$msgUser = "another user";
} else {
$msgUser = "user '$recordDirty[DIRTY_FE_USER]'";
$msgUser = "user '" . $recordDirty[DIRTY_FE_USER] . "'";
}
$msg = "The record has already been locked by $msgUser at $at.";
......@@ -294,7 +294,7 @@ class Dirty {
if ($recordDirty[DIRTY_QFQ_USER_SESSION_COOKIE] == $this->client[CLIENT_COOKIE_QFQ]) {
$msgUser = "you";
} else {
$msgUser = (empty($recordDirty[DIRTY_FE_USER])) ? "another user" : "user '$recordDirty[DIRTY_FE_USER]'";
$msgUser = (empty($recordDirty[DIRTY_FE_USER])) ? "another user" : "user '" . $recordDirty[DIRTY_FE_USER] . "'";
}
$msgAt = "at " . $recordDirty[COLUMN_CREATED] . " from " . $recordDirty[DIRTY_REMOTE_ADDRESS];
$msg = "The record has been locked by $msgUser $msgAt";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment