From 7af29bf0d28d363ff199e1aea199531d9881bc60 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 26 Nov 2011 10:20:32 -0500 Subject: [PATCH] nativecode shows up in userinfo --- lib/framework.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/framework.php b/lib/framework.php index 5d163547f7..e7a1829bc6 100644 --- a/lib/framework.php +++ b/lib/framework.php @@ -164,7 +164,7 @@ function PEAR_ErrorToPEAR_Exception($err) // keep the same broken connection. We die here to get a new // process started. - if (php_sapi_name() == 'cli' && preg_match('/nativecode=2006/', $msg)) { + if (php_sapi_name() == 'cli' && preg_match('/nativecode=2006/', $userInfo)) { common_log(LOG_ERR, "Lost DB connection; dying."); exit(100); }