Skip to content

Commit

Permalink
Merge pull request #6 from MathiasReker/ternary-operator-spaces
Browse files Browse the repository at this point in the history
Ternary operator spaces
  • Loading branch information
litespeedtech committed Jan 7, 2019
2 parents 33e8fbb + ab69915 commit 571dce0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/EsiModConf.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private function getFieldValue($field, $isbool = false, $splitClean = false)
{
$value = (isset($this->data[$field])) ? $this->data[$field] : '';
if ($isbool) {
$value = ($value) ? true:false;
$value = ($value) ? true : false;
}
if ($splitClean && $value) {
$dv = preg_split("/[\s,]+/", $value, null, PREG_SPLIT_NO_EMPTY);
Expand Down
2 changes: 1 addition & 1 deletion classes/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private static function initInternals()
$defaultParam['l'] = $cookie->id_lang;
}
if ($config->get(Conf::CFG_DIFFMOBILE)) {
$defaultParam['mobi'] = $ctx->getMobileDevice() ? 1:0;
$defaultParam['mobi'] = $ctx->getMobileDevice() ? 1 : 0;
}
$esiurl = $ctx->link->getModuleLink(LiteSpeedCache::MODULE_NAME, 'esi', $defaultParam);
$esiurl0 = $ctx->link->getModuleLink(LiteSpeedCache::MODULE_NAME, 'esi');
Expand Down

0 comments on commit 571dce0

Please sign in to comment.