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/Menu
diff options
context:
space:
mode:
authormattpiwik <matthieu.aubry@gmail.com>2011-07-14 03:11:02 +0400
committermattpiwik <matthieu.aubry@gmail.com>2011-07-14 03:11:02 +0400
commit69fac3d9f3f7d08d1d194d064891cd6dc2286416 (patch)
treea74cd526e1766bf8207f7f6c1f0fa86730d84b20 /core/Menu
parent35750f1689ceba4bd1c1c73b8d4c23a7760358e3 (diff)
Refs http://forum.piwik.org/read.php?2,79229
Warning: uasort() [<a href='function.uasort'>function.uasort</a>]: The argument should be an array in /usr/www/pwik1.5/piwik/core/Menu/Abstract.php on line 174 git-svn-id: http://dev.piwik.org/svn/trunk@5018 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Menu')
-rw-r--r--core/Menu/Abstract.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Menu/Abstract.php b/core/Menu/Abstract.php
index 16f04dcf97..6deabf162f 100644
--- a/core/Menu/Abstract.php
+++ b/core/Menu/Abstract.php
@@ -171,6 +171,10 @@ abstract class Piwik_Menu_Abstract
*/
private function applyOrdering()
{
+ if(empty($this->menu))
+ {
+ return;
+ }
uasort($this->menu, array($this, 'menuCompare'));
foreach ($this->menu as $key => &$element)
{