From: Steven L. <jyd...@us...> - 2004-10-01 18:47:01
|
Update of /cvsroot/phpwebsite-comm/modules/phpwsrssfeeds/class In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5578/class Modified Files: Multi_RSS.php Log Message: Fixed a warning received when saving a multi-view and no feeds had been selected. Index: Multi_RSS.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/phpwsrssfeeds/class/Multi_RSS.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** Multi_RSS.php 23 Sep 2004 19:06:57 -0000 1.24 --- Multi_RSS.php 1 Oct 2004 18:46:25 -0000 1.25 *************** *** 733,739 **** if (!isset($_POST["SHOW_MULTIVIEW_SEL"]) || !is_array($_POST["SHOW_MULTIVIEW_SEL"])) { ! $message["SHOW_MULTIVIEW"] = $_SESSION['translate']->it("Please select feeds for inclusion."); ! $error = TRUE; ! } //Check to see if a number has been entered into max items if number is 0 or NULL reset to 10 if (isset($_POST["MAX_MULTI_ITEMS"]) && !is_numeric($_POST["MAX_MULTI_ITEMS"])){ --- 733,743 ---- if (!isset($_POST["SHOW_MULTIVIEW_SEL"]) || !is_array($_POST["SHOW_MULTIVIEW_SEL"])) { ! $this->_show_in_multiview = array(); ! $message["SHOW_MULTIVIEW"] = $_SESSION['translate']->it("Please select feeds for inclusion."); ! $error = TRUE; ! } else { ! $this->_show_in_multiview = $_POST["SHOW_MULTIVIEW_SEL"]; ! } ! //Check to see if a number has been entered into max items if number is 0 or NULL reset to 10 if (isset($_POST["MAX_MULTI_ITEMS"]) && !is_numeric($_POST["MAX_MULTI_ITEMS"])){ *************** *** 750,754 **** // note that parseInput called this way allows the global set of HTML tags to be included $this->setLabel(RSS_common::get_htmlentities(PHPWS_Text::parseInput(@$_POST["TITLE"]))); - $this->_show_in_multiview = @$_POST["SHOW_MULTIVIEW_SEL"]; $current_home = $this->_home; --- 754,757 ---- |