Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobocoder <anthon.pang@gmail.com>2011-05-03 19:32:11 +0400
committerrobocoder <anthon.pang@gmail.com>2011-05-03 19:32:11 +0400
commit2a12bcb5f0158fa444835cd939e0f017e3040488 (patch)
tree94ba296ac6b30a185d089d91e4e91a785c1ea870 /core/IP.php
parent787f2a36f2aa35fac33e47ed7dabc9d411cc4ec6 (diff)
quoting style
git-svn-id: http://dev.piwik.org/svn/trunk@4629 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/IP.php')
-rw-r--r--core/IP.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/IP.php b/core/IP.php
index 7f78a7890b..92ce43d8c9 100644
--- a/core/IP.php
+++ b/core/IP.php
@@ -456,9 +456,12 @@ class Piwik_IP
*/
function php_compat_inet_ntop($in_addr)
{
+ // in case mbstring overloads strlen function
+ $strlen = function_exists('mb_orig_strlen') ? 'mb_orig_strlen' : 'strlen';
+
$r = bin2hex($in_addr);
- switch (strlen($in_addr))
+ switch ($strlen($in_addr))
{
case 4:
// IPv4 address