@@ -149,11 +149,11 @@ |
||
| 149 | 149 | $cat_color = $catList->getVar('cat_color'); |
| 150 | 150 | $checked = in_array($cat_id, $cat) ? 'checked' : ''; |
| 151 | 151 | $cat = '' |
| 152 | - . "<div style='float:left; margin-left:5px;'>" |
|
| 153 | - . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>" |
|
| 154 | - . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>" |
|
| 155 | - . " {$name}" |
|
| 156 | - . '</div>'; |
|
| 152 | + . "<div style='float:left; margin-left:5px;'>" |
|
| 153 | + . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>" |
|
| 154 | + . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>" |
|
| 155 | + . " {$name}" |
|
| 156 | + . '</div>'; |
|
| 157 | 157 | |
| 158 | 158 | $t[] = $cat; |
| 159 | 159 | } |
@@ -151,11 +151,11 @@ |
||
| 151 | 151 | $cat_color = $catList->getVar('cat_color'); |
| 152 | 152 | $checked = in_array($cat_id, $cat) ? 'checked' : ''; |
| 153 | 153 | $cat = '' |
| 154 | - . "<div style='float:left; margin-left:5px;'>" |
|
| 155 | - . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>" |
|
| 156 | - . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>" |
|
| 157 | - . " {$name}" |
|
| 158 | - . '</div>'; |
|
| 154 | + . "<div style='float:left; margin-left:5px;'>" |
|
| 155 | + . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>" |
|
| 156 | + . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>" |
|
| 157 | + . " {$name}" |
|
| 158 | + . '</div>'; |
|
| 159 | 159 | |
| 160 | 160 | $t[] = $cat; |
| 161 | 161 | } |
@@ -166,7 +166,7 @@ |
||
| 166 | 166 | // Flag current day |
| 167 | 167 | $selectedDays = [ |
| 168 | 168 | new Calendar_Day(date('Y', xoops_getUserTimestamp(time(), $timeHandler->getUserTimeZone($GLOBALS['xoopsUser']))), date('n', xoops_getUserTimestamp(time(), $timeHandler->getUserTimeZone($GLOBALS['xoopsUser']))), |
| 169 | - date('j', xoops_getUserTimestamp(time(), $timeHandler->getUserTimeZone($GLOBALS['xoopsUser'])))), |
|
| 169 | + date('j', xoops_getUserTimestamp(time(), $timeHandler->getUserTimeZone($GLOBALS['xoopsUser'])))), |
|
| 170 | 170 | ]; |
| 171 | 171 | |
| 172 | 172 | // Build calendar object |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | public function convertResultSet($result, $idAsKey = false, $asObject = true) |
| 163 | 163 | { |
| 164 | 164 | $ret = []; |
| 165 | - while (false !== ($myrow = $this->db->fetchArray($result))) { |
|
| 165 | + while (false !== ($myrow = $this->db->fetchArray($result))) { |
|
| 166 | 166 | $obj = $this->create(false); |
| 167 | 167 | $obj->assignVars($myrow); |
| 168 | 168 | if (!$idAsKey) { |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | } |
| 234 | 234 | |
| 235 | 235 | $myts = \MyTextSanitizer::getInstance(); |
| 236 | - while (false !== ($myrow = $this->db->fetchArray($result))) { |
|
| 236 | + while (false !== ($myrow = $this->db->fetchArray($result))) { |
|
| 237 | 237 | //identifiers should be textboxes, so sanitize them like that |
| 238 | 238 | $ret[$myrow[$this->keyName]] = empty($this->identifierName) ? 1 : $myts->htmlSpecialChars($myrow[$this->identifierName]); |
| 239 | 239 | } |