From 7cedd4af7a90feb3e9b26cee0d73700d24803890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20d=27Anterroches?= Date: Wed, 2 Feb 2011 10:34:48 +0100 Subject: [PATCH] Fixed to not work on a bad key. --- src/IDF/Plugin/SyncMonotone.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/IDF/Plugin/SyncMonotone.php b/src/IDF/Plugin/SyncMonotone.php index bc12e2a..819d100 100644 --- a/src/IDF/Plugin/SyncMonotone.php +++ b/src/IDF/Plugin/SyncMonotone.php @@ -631,7 +631,12 @@ class IDF_Plugin_SyncMonotone */ public function processKeyDelete($key) { - if ($key->getType() != 'mtn') { + try { + if ($key->getType() != 'mtn') { + return; + } + } catch (Exception $e) { + // bad key type, skip it. return; }