Fix date comparison when importing definitions

This commit is contained in:
Nathan Gray 2011-03-21 17:35:53 +00:00
parent 0f5a354a12
commit 9f20d116b6

View File

@ -173,7 +173,7 @@ class importexport_definitions_bo {
$definition = new importexport_definition( $definition_data['name'] );
// Only update if the imported is newer
if($definition->modified < $definition_data['modified'] || $definition->modified == 0)
if(strtotime($definition->modified) < strtotime($definition_data['modified']) || $definition->modified == 0)
{
$definition_id = $definition->get_identifier() ? $definition->get_identifier() : NULL;