Fixed to not work on a bad key.

This commit is contained in:
Loïc d'Anterroches 2011-02-02 10:34:48 +01:00
parent e31f10e648
commit 7cedd4af7a

View File

@ -631,7 +631,12 @@ class IDF_Plugin_SyncMonotone
*/ */
public function processKeyDelete($key) public function processKeyDelete($key)
{ {
if ($key->getType() != 'mtn') { try {
if ($key->getType() != 'mtn') {
return;
}
} catch (Exception $e) {
// bad key type, skip it.
return; return;
} }