--- print-5.x/print.module 2008-04-03 15:45:47.000000000 +0200
+++ print.module      2008-04-21 13:25:41.000000000 +0200
@@ -778,7 +778,10 @@
     //Remove the comment title hyperlink
     $comments = preg_replace("/(<h3.*?>)(<a.*?>)(.*?)<\/a>(<\/h3>)/", "$1$3$4", $comments);
     //Remove the comment author link
-    $comments = preg_replace("/(<span class=\"submitted\">)(.*?)<a.*?>(.*?)<\/a>(<\/span>)/sim", "$1$2$3$4", $comments);
+    $pattern = "/(<span class=\"submitted\">)(.*?)<a.*?>(.*?)<\/a>(<\/span>)/sim";
+    if (preg_match($pattern, $comments)) {
+      $comments = preg_replace($pattern , "$1$2$3$4", $comments);
+    }
     //Remove the comment links
     $comments = preg_replace("/\s*<ul class=\"links\">.*?<\/ul>/sim", "", $comments);
     if ($cid != NULL) {
