0 && get_resource_access($bg_img_resource_ref) == RESOURCE_ACCESS_FULL ) { $coldata["bg_img_resource_ref"] = $bg_img_resource_ref; } // If invalid bg_img_resource_ref or no full access to resource, then don't submit the change elseif ($thumbnail_selection_method == $FEATURED_COLLECTION_BG_IMG_SELECTION_OPTIONS["manual"]) { $reset_thumbnail_selection_method = (isset($collection['thumbnail_selection_method']) ? $collection['thumbnail_selection_method'] : $FEATURED_COLLECTION_BG_IMG_SELECTION_OPTIONS["no_image"]); $coldata['featured_collections_changes']['thumbnail_selection_method'] = $reset_thumbnail_selection_method; $coldata['bg_img_resource_ref'] = 0; } } } elseif ($collection["type"] == COLLECTION_TYPE_FEATURED && checkperm("h")) { $coldata['featured_collections_changes']['name'] = ""; } if (checkperm("h")) { $coldata["home_page_publish"] = (getval("home_page_publish", "") != "") ? "1" : "0"; $coldata["home_page_text"] = getval("home_page_text", ""); if (getval("home_page_image", "") != "") { $coldata["home_page_image"] = getval("home_page_image", ""); } } if ( ( $coldata["public"] == 0 || ( isset($coldata["featured_collections_changes"]["update_parent"]) && $coldata["featured_collections_changes"]["update_parent"] == 0 && getval("force_featured_collection_type", "") != "true" ) ) && is_featured_collection_category_by_children($collection["ref"]) ) { $error = $lang["error_save_not_allowed_fc_has_children"]; } if (!isset($error)) { save_collection($ref, $coldata); if ($redirect) { if ($redirection_endpoint == "") { $redirection_endpoint = generateURL( "{$baseurl_short}pages/collection_manage.php", array( "offset" => $offset, "col_order_by" => $col_order_by, "sort" => $sort, "find" => $find, "reload" => "true", ) ); } if ($modal) { ?> $collection["ref"]], $search_params); $form_action = generateURL("{$baseurl_short}pages/collection_edit.php", $url_params); include "../include/header.php"; ?>