From cb2bc809ef29f349d38c89e202d821e67bb4c947 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Tue, 21 Sep 2010 14:47:55 -0400
Subject: [PATCH] Fix db_mode check in insert_id()

---
 program/lib/enriched.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/lib/enriched.inc b/program/lib/enriched.inc
index 2435a82..e3abd8c 100644
--- a/program/lib/enriched.inc
+++ b/program/lib/enriched.inc
@@ -45,7 +45,7 @@
 			'</indentright>'=>'</span>');
 	
 	while(list($find,$replace)=each($a)){
-		$body = eregi_replace($find,$replace,$body);
+		$body = preg_replace('#'.$find.'#i', $replace, $body);
 	}
 	return $body;
 }

--
Gitblit v1.9.1