}
self::$_template->assign_by_ref("{$this->_prefix}sort", $this->_sort);
- self::$_template->assign("{$this->_prefix}columnHeaders", $this->_store->get("{$this->_prefix}columnHeaders"));
+ $columnHeaders = (array) $this->_store->get("{$this->_prefix}columnHeaders");
+ foreach ($columnHeaders as $index => $columnHeader) {
+ // Fill out the keys to avoid e-notices.
+ if (!isset($columnHeader['sort'])) {
+ $columnHeaders[$index]['sort'] = NULL;
+ }
+ if (!isset($columnHeader['name'])) {
+ $columnHeaders[$index]['name'] = NULL;
+ }
+ }
+ self::$_template->assign("{$this->_prefix}columnHeaders", $columnHeaders);
self::$_template->assign("{$this->_prefix}rows", $rows);
self::$_template->assign("{$this->_prefix}rowsEmpty", $this->_store->get("{$this->_prefix}rowsEmpty"));
self::$_template->assign("{$this->_prefix}qill", $this->_store->get("{$this->_prefix}qill"));