diff --git a/index.php b/index.php index a77d2ac..cad10c7 100644 --- a/index.php +++ b/index.php @@ -1319,8 +1319,12 @@ HTML; } // Check to see if the user has been specifically CC'd - $reply = in_array( "https://{$server}/{$username}", $object["cc"] ); - + if ( isset( $object["cc"] ) ) { + $reply = in_array( "https://{$server}/{$username}", $object["cc"] ); + } else { + $reply = false; + } + // What sort of message is this? "Create" == $type ? $verb = "wrote" : $verb = "updated"; if ( $reply ) {