]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_forced_ads.php
mailer project continued:
[mailer.git] / inc / modules / admin / what-list_forced_ads.php
index e9330c14373786c7cc4c7ecdc689329d90ecbc54..b728277d3ded9b81e92583d71e28026e34dbfeaa 100644 (file)
@@ -16,8 +16,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -47,7 +47,7 @@ addYouAreHereLink('admin', __FILE__);
 $show = true;
 
 // Check for 'url_id' element
-if ((countRequestPost() > 0) && ((!isPostRequestParameterSet('forced_ads_id')) || (!is_array(postRequestParameter('forced_ads_id'))) || (count(postRequestParameter('forced_ads_id')) == 0))) {
+if ((!isFormSent('add')) && (countRequestPost() > 0) && (!ifPostContainsSelections('forced_ads_id'))) {
        // Not found so output message
        displayMessage('{--ADMIN_FORCED_ADS_NO_SELECTIONS--}');
 
@@ -88,14 +88,8 @@ if ($show === false) {
 // List all URLs
 showEntriesByXmlCallback('admin_list_forced_ads');
 
-// Prepare content for template
-$content = array(
-       'reload_lock' => createTimeSelections(0, 'forced_ads_reload_lock', 'WDhm'),
-       'min_stay'    => createTImeSelections(0, 'forced_ads_min_stay'   , 'ms')
-);
-
 // Display form for adding a forced-ad
-loadTemplate('admin_add_forced_ad', false, $content);
+loadTemplate('admin_add_forced_ad');
 
 // [EOF]
 ?>