]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-refbanner.php
More double quotes to single rewritten, CSS/HTML cleanups
[mailer.git] / inc / modules / admin / what-refbanner.php
index 1d0171b880d2eb73fd82ba20f22299ce1c07d42c..174f837e97e8060a0eb26204ae6bd4fea60ebef0 100644 (file)
@@ -86,11 +86,16 @@ VALUES ('%s','%s','%s')",
                        break;
        }
 
                        break;
        }
 
+       // Check if we have saved (updated)
        if (SQL_AFFECTEDROWS() == 1) {
        if (SQL_AFFECTEDROWS() == 1) {
+               // Updated!
                $content = getMessage('SETTINGS_SAVED');
        } else {
                $content = getMessage('SETTINGS_SAVED');
        } else {
-               $content = "<span class=\"admin_failed\">{--SETTINGS_NOT_SAVED--}</span>";
+               // Nothing has been updated
+               $content = '<span class="admin_failed">{--SETTINGS_NOT_SAVED--}</span>';
        }
        }
+
+       // Display message
        loadTemplate('admin_settings_saved', false, $content);
 } elseif ((countPostSelection() > 0) && (isPostRequestParameterSet('edit'))) {
        // Edit banner
        loadTemplate('admin_settings_saved', false, $content);
 } elseif ((countPostSelection() > 0) && (isPostRequestParameterSet('edit'))) {
        // Edit banner