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,9 +631,14 @@ class IDF_Plugin_SyncMonotone
*/ */
public function processKeyDelete($key) public function processKeyDelete($key)
{ {
try {
if ($key->getType() != 'mtn') { if ($key->getType() != 'mtn') {
return; return;
} }
} catch (Exception $e) {
// bad key type, skip it.
return;
}
if (Pluf::f('mtn_db_access', 'local') == 'local') { if (Pluf::f('mtn_db_access', 'local') == 'local') {
return; return;