From 3fcc3f6160ca7cd6fd30b3deb6f58d6a95c9c5e2 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Tue, 11 Feb 2014 17:28:36 +0200 Subject: Another tiny optimization in CI_Table + remove an accidental addition --- system/libraries/Table.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'system/libraries/Table.php') diff --git a/system/libraries/Table.php b/system/libraries/Table.php index 1a3aa9a2b..79632b3da 100644 --- a/system/libraries/Table.php +++ b/system/libraries/Table.php @@ -138,13 +138,12 @@ class CI_Table { * * Can be passed as an array or discreet params * - * @param mixed $array + * @param mixed * @return CI_Table */ - public function set_heading($args = array(), $attributes = array()) + public function set_heading($args = array()) { - $args = func_get_args(); - $this->heading = $this->_prep_args($args); + $this->heading = $this->_prep_args(func_get_args()); return $this; } @@ -224,8 +223,7 @@ class CI_Table { */ public function add_row($args = array()) { - $args = func_get_args(); - $this->rows[] = $this->_prep_args($args); + $this->rows[] = $this->_prep_args(func_get_args()); return $this; } -- cgit v1.2.3-24-g4f1b