diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-03-22 23:14:11 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-03-22 23:14:11 +0300 |
commit | 0b725b5067c7efdcfabb9b6da65ba36e470b440d (patch) | |
tree | 60e875d3792ccab22d1e741633730e0a32fc2d32 /core | |
parent | 49ea310b84624d061a1feaaffdcb1fa984096d04 (diff) |
- fixed Fatal error: Call to undefined function memory_get_usage()
Diffstat (limited to 'core')
-rw-r--r-- | core/Timer.php | 6 |
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; } } |