Skip to content

Commit

Permalink
fixed: use getRowContentChecksum() instead of str_ireplace ...
Browse files Browse the repository at this point in the history
  • Loading branch information
hertsch committed Sep 4, 2013
1 parent 6a18812 commit f33846d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/phpManufaktur/SyncData/Control/Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ protected function checkTable($table)
if (false === ($record = $General->getRowContent(CMS_TABLE_PREFIX.$table['table_name'], array($table['index_field'] => $row[$table['index_field']])))) {
throw new \Exception(sprintf("Can't read the row content for table %s by select %s and %s", $table['table_name'], $table['index_field'], $row[$table['index_field']]));
}
$new_checksum = md5(str_ireplace(CMS_URL, '{{ SyncData:CMS_URL }}', implode(',', $record)));
$new_checksum = $General->getRowContentChecksum(CMS_TABLE_PREFIX.$table['table_name'], array($table['index_field'] => $row[$table['index_field']]));
$data = array(
'backup_id' => self::$backup_id,
'index_field' => $table['index_field'],
Expand Down

0 comments on commit f33846d

Please sign in to comment.