chg: [genericElement:form] More flexible variable check

pull/59/head
mokaddem 2021-06-12 12:04:57 +02:00
parent 543603339b
commit d76aa04ad7
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@
$submitButtonData['ajaxSubmit'] = $ajaxSubmit; $submitButtonData['ajaxSubmit'] = $ajaxSubmit;
} }
$ajaxFlashMessage = ''; $ajaxFlashMessage = '';
if ($ajax) { if (!empty($ajax)) {
$ajaxFlashMessage = sprintf( $ajaxFlashMessage = sprintf(
'<div id="flashContainer"><div id="main-view-container">%s</div></div>', '<div id="flashContainer"><div id="main-view-container">%s</div></div>',
$this->Flash->render() $this->Flash->render()

View File

@ -1,5 +1,5 @@
<?php <?php
if ($ajax) { if (!empty($ajax)) {
echo sprintf( echo sprintf(
'%s', '%s',
sprintf( sprintf(