From: Matt Selsky Date: Sun, 2 Aug 2009 06:06:44 +0000 (-0400) Subject: Fix parse error and make sure to negate instanceof as the phpdoc suggests with X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9d72279c7ddc80e69e9b2d9b5f5aac8a6224a089;p=horde.git Fix parse error and make sure to negate instanceof as the phpdoc suggests with the extra parens. --- 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);