diff options
author | George Petculescu <gxgpet@gmail.com> | 2016-10-01 09:10:04 +0200 |
---|---|---|
committer | George Petculescu <gxgpet@gmail.com> | 2016-10-01 09:10:04 +0200 |
commit | 8800fedd37be6fe4267ed7635fc536ff91a94c62 (patch) | |
tree | 860a3e5af9ab33afc42d5ebfa8f7698bb3ff6087 /system | |
parent | 30a66c8cb47ef785b08843b7051b2003ed907246 (diff) |
- small fix for HTML Table library: caption is not clearing properly and method chaining has been fixed for set_caption method.
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Table.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/system/libraries/Table.php b/system/libraries/Table.php index 3bce294d8..37a639d1d 100644 --- a/system/libraries/Table.php +++ b/system/libraries/Table.php @@ -277,6 +277,7 @@ class CI_Table { public function set_caption($caption) { $this->caption = $caption; + return $this; } // -------------------------------------------------------------------- @@ -426,6 +427,7 @@ class CI_Table { $this->rows = array(); $this->heading = array(); $this->auto_heading = TRUE; + $this->caption = NULL; return $this; } |