Skip to content

Commit 8404e32

Browse files
authored
Fixed left assoc ternary
1 parent c71bfee commit 8404e32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Form/TAjaxSelect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private function getData(string $query = '', $default = null): array
106106
}
107107

108108
if ($this->storage instanceof \Nette\Caching\Cache) {
109-
$cacheKey = $this->getHtmlId() . '_' . $query . '_' . \is_array($default) ? \implode(',', $default) : $default;
109+
$cacheKey = $this->getHtmlId() . '_' . $query . '_' . (\is_array($default) ? \implode(',', $default) : $default);
110110
$result = $this->storage->load($cacheKey);
111111

112112
if (\is_array($result) && !empty($result)) {

0 commit comments

Comments
 (0)