From: Alexandre Emsenhuber Date: Mon, 14 Apr 2014 18:44:18 +0000 (+0200) Subject: Make profiling to UDP work again X-Git-Tag: 1.31.0-rc.0~16214 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=e0983c311b3856a0a733ce746393169cc71f2628;p=lhc%2Fweb%2Fwiklou.git Make profiling to UDP work again Fix for I1260bab2b5 (afa6af0). Since $this->mCollated['-total'] is normally always defined, this would cause no logging to UDP at all. Change-Id: Ibce1c8662b4b3e99e77723f5377dd654b4f59be1 --- diff --git a/includes/profiler/ProfilerSimpleUDP.php b/includes/profiler/ProfilerSimpleUDP.php index e9bcff6414..dfe923d6c4 100644 --- a/includes/profiler/ProfilerSimpleUDP.php +++ b/includes/profiler/ProfilerSimpleUDP.php @@ -41,11 +41,6 @@ class ProfilerSimpleUDP extends Profiler { $this->close(); - if ( isset( $this->mCollated['-total'] ) ) { - # Less than minimum, ignore - return; - } - if ( !function_exists( 'socket_create' ) ) { # Sockets are not enabled return;