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;
}
$ajaxFlashMessage = '';
if ($ajax) {
if (!empty($ajax)) {
$ajaxFlashMessage = sprintf(
'<div id="flashContainer"><div id="main-view-container">%s</div></div>',
$this->Flash->render()

View File

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