[icinga-checkins] icinga.org: icingaweb2-module-director/feature/service-set-12891: QuickTable: fix 'return value in write contex'...

git at icinga.org git at icinga.org
Thu Oct 20 09:26:57 CEST 2016


Module: icingaweb2-module-director
Branch: feature/service-set-12891
Commit: b40f4a7ab750a68eb4d2fb99fdb135798fcd4cbc
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=b40f4a7ab750a68eb4d2fb99fdb135798fcd4cbc

Author: Thomas Gelf <thomas at gelf.net>
Date:   Fri Oct 14 19:35:52 2016 +0000

QuickTable: fix 'return value in write contex'...

...for older PHP versions

---

 library/Director/Web/Table/QuickTable.php |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/library/Director/Web/Table/QuickTable.php b/library/Director/Web/Table/QuickTable.php
index 94fd2de..ce6d955 100644
--- a/library/Director/Web/Table/QuickTable.php
+++ b/library/Director/Web/Table/QuickTable.php
@@ -281,7 +281,8 @@ abstract class QuickTable implements Paginatable
     protected function listTableClasses()
     {
         $classes = array('simple', 'common-table', 'table-row-selectable');
-        if (! empty($this->getMultiselectProperties())) {
+        $multi = $this->getMultiselectProperties();
+        if (! empty($multi)) {
             $classes[] = 'multiselect';
         }
 



More information about the icinga-checkins mailing list