From fa90dc8f85be1596bb3fb5640dd2446013e27265 Mon Sep 17 00:00:00 2001 From: Matthieu Guffroy <mattgu74@gmail.com> Date: Wed, 18 Jun 2014 21:49:17 +0200 Subject: [PATCH] fix errors --- class/listview.php | 2 +- view/list.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/class/listview.php b/class/listview.php index 7ac38be..288fd52 100644 --- a/class/listview.php +++ b/class/listview.php @@ -22,7 +22,7 @@ class ListView public function getLabels() { if(count($this->objArray) > 0 ){ - return $this->objArray[0]; + return $this->objArray[0]->getFields(); } else { throw new Exception("Liste vide"); } diff --git a/view/list.php b/view/list.php index 3b0b090..a7fc18a 100644 --- a/view/list.php +++ b/view/list.php @@ -6,7 +6,7 @@ <table class="table"> <thead> <?php foreach($list->getLabels() as $field): ?> - <th><?php echo $field->getLabels(); ?></th> + <th><?php echo $field->getLabel(); ?></th> <?php endforeach; ?> <th></th> </thead> -- GitLab