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); }