Fix parse error and make sure to negate instanceof as the phpdoc suggests with
authorMatt Selsky <selsky@columbia.edu>
Sun, 2 Aug 2009 06:06:44 +0000 (02:06 -0400)
committerMatt Selsky <selsky@columbia.edu>
Sun, 2 Aug 2009 06:06:44 +0000 (02:06 -0400)
the extra parens.

imp/lib/Mime/Viewer/Itip.php

index 65dbe9b..da5d3e9 100644 (file)
@@ -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);