Commit f0a9fd2e authored by drumm's avatar drumm
Browse files

Fix notice when previewing new projects

parent 5482c8bc
......@@ -1057,6 +1057,9 @@ function project_release_node_delete($node) {
* TRUE to force regenerating the cache.
*/
function project_release_download_table($pid, $_clear = FALSE) {
if (is_null($pid)) {
return;
}
if ($_clear || ($cache = cache_get($pid, 'cache_project_release_download_table')) === FALSE) {
$output = views_embed_view(variable_get('project_release_downloads_view_' . node_load($pid)->type, variable_get('project_release_downloads_view', 'project_release_download_table')), 'recommended', $pid);
cache_set($pid, $output, 'cache_project_release_download_table');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment