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:
authormatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2008-01-18 17:10:01 +0300
committermatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2008-01-18 17:10:01 +0300
commit70a2b9890e9c684ca7157bbc56c8e9161ed2df8a (patch)
treecbc6131b4b628e93636e2e7e8dc006018ad6c156 /modules/DataTable/Row.php
parentfeb0915312a2d3f200174504bd03effc28e2b6e1 (diff)
Fixed bug in PHP recursive search
Other fixes
Diffstat (limited to 'modules/DataTable/Row.php')
-rw-r--r--modules/DataTable/Row.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/DataTable/Row.php b/modules/DataTable/Row.php
index 8eaf0d2296..ea54003524 100644
--- a/modules/DataTable/Row.php
+++ b/modules/DataTable/Row.php
@@ -247,7 +247,16 @@ class Piwik_DataTable_Row
*/
public function setColumn($name, $value)
{
- $this->c[self::COLUMNS][$name] = $value;
+ if(isset($this->c[self::COLUMNS][$name])
+ || $name != 'label')
+ {
+ $this->c[self::COLUMNS][$name] = $value;
+ }
+ // we make sure when adding the label it goes first in the table
+ else
+ {
+ $this->c[self::COLUMNS] = array($name => $value) + $this->c[self::COLUMNS];
+ }
}
/**