Closed YukiKojima closed 8 years ago
Sorry,I'm not good at English. Is the 9th line correct? ($default = ...)
/** * Usage: {config item='' default=''} * Required: item * * @return mixed string or array */ public function config_get($params) { if (isset($params['item'])) { $default = $params['default'] ? null : $params['default']; return Config::get($params['item'], $default); } return ''; }
Yes, it is equal to
if (empty($params['default'])) { $default = null; } else { $default = $params['default']; }
Sorry,I'm not good at English. Is the 9th line correct? ($default = ...)