diff options
Diffstat (limited to 'core/SmartyPlugins/function.ajaxErrorDiv.php')
-rw-r--r-- | core/SmartyPlugins/function.ajaxErrorDiv.php | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/core/SmartyPlugins/function.ajaxErrorDiv.php b/core/SmartyPlugins/function.ajaxErrorDiv.php index 79521d18af..886873f518 100644 --- a/core/SmartyPlugins/function.ajaxErrorDiv.php +++ b/core/SmartyPlugins/function.ajaxErrorDiv.php @@ -1,10 +1,10 @@ <?php /** * Piwik - Open source web analytics - * + * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - * + * * @category Piwik * @package SmartyPlugins */ @@ -18,13 +18,10 @@ */ function smarty_function_ajaxErrorDiv($params, &$smarty) { - if(empty($params['id'])) - { - $id = 'ajaxError'; - } - else - { - $id = $params['id']; - } - return '<div class="ajaxError" id="'.$id.'" style="display:none"></div>'; + if (empty($params['id'])) { + $id = 'ajaxError'; + } else { + $id = $params['id']; + } + return '<div class="ajaxError" id="' . $id . '" style="display:none"></div>'; } |