From 9d72279c7ddc80e69e9b2d9b5f5aac8a6224a089 Mon Sep 17 00:00:00 2001 From: Matt Selsky Date: Sun, 2 Aug 2009 02:06:44 -0400 Subject: [PATCH] Fix parse error and make sure to negate instanceof as the phpdoc suggests with the extra parens. --- imp/lib/Mime/Viewer/Itip.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imp/lib/Mime/Viewer/Itip.php b/imp/lib/Mime/Viewer/Itip.php index 65dbe9bfa..da5d3e9aa 100644 --- a/imp/lib/Mime/Viewer/Itip.php +++ b/imp/lib/Mime/Viewer/Itip.php @@ -237,10 +237,10 @@ class IMP_Horde_Mime_Viewer_Itip extends Horde_Mime_Viewer_Driver $vEvent_reply = Horde_iCalendar::newComponent('vevent', $vCal); $vEvent_reply->setAttribute('UID', $vEvent->getAttribute('UID')); - if (!$vEvent->getAttribute('SUMMARY') instanceof PEAR_Error)) { + if (!($vEvent->getAttribute('SUMMARY') instanceof PEAR_Error)) { $vEvent_reply->setAttribute('SUMMARY', $vEvent->getAttribute('SUMMARY')); } - if (!$vEvent->getAttribute('DESCRIPTION') instanceof PEAR_Error) { + if (!($vEvent->getAttribute('DESCRIPTION') instanceof PEAR_Error)) { $vEvent_reply->setAttribute('DESCRIPTION', $vEvent->getAttribute('DESCRIPTION')); } $dtstart = $vEvent->getAttribute('DTSTART', true); -- 2.11.0