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
path: root/core
diff options
context:
space:
mode:
authormatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-03-22 23:14:11 +0300
committermatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-03-22 23:14:11 +0300
commit0b725b5067c7efdcfabb9b6da65ba36e470b440d (patch)
tree60e875d3792ccab22d1e741633730e0a32fc2d32 /core
parent49ea310b84624d061a1feaaffdcb1fa984096d04 (diff)
- fixed Fatal error: Call to undefined function memory_get_usage()
Diffstat (limited to 'core')
-rw-r--r--core/Timer.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Timer.php b/core/Timer.php
index 07c2adbd01..f25ef16d9e 100644
--- a/core/Timer.php
+++ b/core/Timer.php
@@ -57,6 +57,10 @@ class Piwik_Timer
private function getMemoryUsage()
{
- return memory_get_usage();
+ if(function_exists('memory_get_usage'))
+ {
+ return memory_get_usage();
+ }
+ return 0;
}
}