Browse Source

fixed php syntax for string length

Thomas Thümmler 7 months ago
parent
commit
82ffba249e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      public/index.php

+ 2 - 2
public/index.php

@@ -85,7 +85,7 @@
             {
                 $colname=$result->columnName($i);
                 $colname = str_replace('_', ' ', $colname);
-                if ($tableName.length < 5 || $i != 11) // column 11 = LARA, which is skipped since KNM10 (length 5, KNM9 and before length 4)
+                if (strlen($tableName) < 5 || $i != 11) // column 11 = LARA, which is skipped since KNM10 (length 5, KNM9 and before length 4)
                 {  
                   if ($i < 5){
                     echo "<th>$colname</th>";
@@ -114,7 +114,7 @@
                       // store most recent entry (row=0) of latest campaign (index=0) for display in checklist.php
                     }
 
-                    if ($tableName.length < 5 || $i != 11) // skip column 11 = LARA, which is true since KNM10 (length 5, KNM9 and before length 4)
+                    if (strlen($tableName) < 5 || $i != 11) // skip column 11 = LARA, which is true since KNM10 (length 5, KNM9 and before length 4)
                     {
                       if ($value == "good"){
                         echo "<th id='green'>$value</th>";