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:
stan 2008-10-09 08:28:50 +00:00
parent bef8c7bc16
commit 779737fcde
1 changed files with 2 additions and 2 deletions

View File

@ -390,7 +390,6 @@ void Event::updateNotes( const StringSetMap &newNoteSetMap )
if ( noteSetIter == noteSet.end() ) if ( noteSetIter == noteSet.end() )
{ {
noteSet.insert( newNote ); noteSet.insert( newNote );
}
update = true; update = true;
} }
} }
@ -398,13 +397,14 @@ void Event::updateNotes( const StringSetMap &newNoteSetMap )
} }
} }
} }
}
if ( update ) if ( update )
{ {
std::string notes; std::string notes;
createNotes( 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]; static char sql[BUFSIZ];
#if USE_PREPARED_SQL #if USE_PREPARED_SQL
static MYSQL_STMT *stmt = 0; static MYSQL_STMT *stmt = 0;