]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
nativecode shows up in userinfo
authorEvan Prodromou <evan@status.net>
Sat, 26 Nov 2011 15:20:32 +0000 (10:20 -0500)
committerEvan Prodromou <evan@status.net>
Sat, 26 Nov 2011 15:20:32 +0000 (10:20 -0500)
lib/framework.php

index 5d163547f78997436bce24c34695ed7d9280d5a9..e7a1829bc697065d4ad56ea0feb21609fa0934f3 100644 (file)
@@ -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);
     }