From: Evan Prodromou Date: Sat, 26 Nov 2011 15:20:32 +0000 (-0500) Subject: nativecode shows up in userinfo X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7af29bf0d28d363ff199e1aea199531d9881bc60;p=quix0rs-gnu-social.git nativecode shows up in userinfo --- 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); }