Corrected notes update problem.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2655 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
bef8c7bc16
commit
779737fcde
|
@ -390,7 +390,6 @@ void Event::updateNotes( const StringSetMap &newNoteSetMap )
|
|||
if ( noteSetIter == noteSet.end() )
|
||||
{
|
||||
noteSet.insert( newNote );
|
||||
}
|
||||
update = true;
|
||||
}
|
||||
}
|
||||
|
@ -398,13 +397,14 @@ void Event::updateNotes( const StringSetMap &newNoteSetMap )
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( update )
|
||||
{
|
||||
std::string notes;
|
||||
createNotes( notes );
|
||||
|
||||
Info( "Updating notes for event %d, '%s'", id, notes.c_str() );
|
||||
Debug( 2, "Updating notes for event %d, '%s'", id, notes.c_str() );
|
||||
static char sql[BUFSIZ];
|
||||
#if USE_PREPARED_SQL
|
||||
static MYSQL_STMT *stmt = 0;
|
||||
|
|
Loading…
Reference in New Issue