Commit f65b2d6a authored by Carsten  Rose's avatar Carsten Rose
Browse files

Fix problem that a missing GET parameter 'recordHashMd5' always trigger 'record modified'

parent b084998a
......@@ -242,6 +242,10 @@ class Dirty {
private function isRecordModified($tableName, $recordId, $recordHashMd5, &$rcMd5) {
if($recordHashMd5 =='') {
return false; // If there is no recordHashMd5, the check is not possible. Always return 'not modified' (=ok)
$record = $this->db->sql("SELECT * FROM $tableName WHERE id=?", ROW_EXPECT_1, [$recordId], "Record to lock not found.");
$rcMd5 = OnArray::getMd5($record);
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