* fix a bug in createChanges.

This commit is contained in:
zhujinyong
2013-01-09 02:55:06 +00:00
parent ef2c4cb87b
commit 33a6cf0aac
+1 -1
View File
@@ -380,7 +380,7 @@ class common extends control
if(strtolower($key) == 'editeddate') continue;
if($magicQuote) $value = stripslashes($value);
if($value != $old->$key)
if($value != stripslashes($old->$key))
{
$diff = '';
if(substr_count($value, "\n") > 1 or substr_count($old->$key, "\n") > 1 or strpos('name,title,desc,spec,steps,content,digest,verify', strtolower($key)) !== false) $diff = commonModel::diff($old->$key, $value);