summaryrefslogtreecommitdiffstats
path: root/system/libraries/Table.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-02-11 16:28:36 +0100
committerAndrey Andreev <narf@devilix.net>2014-02-11 16:28:36 +0100
commit3fcc3f6160ca7cd6fd30b3deb6f58d6a95c9c5e2 (patch)
tree24c2e9d48f0293b13b506865592f7cdb9226d545 /system/libraries/Table.php
parenta49c8adbc24d904b3473cc301f0f56818acdddcb (diff)
Another tiny optimization in CI_Table + remove an accidental addition
Diffstat (limited to 'system/libraries/Table.php')
-rw-r--r--system/libraries/Table.php10
1 files changed, 4 insertions, 6 deletions
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;
}