If you don't set the metadesc for all act codes, you're going to get that warning when you try to load a page with an undefined value.
Something like this should fix it:
PHP Code:
<?php
if (array_key_exists("metadesc", $act_values[$act]))
{
$page_metadesc = $act_values[$act]["metadesc"];
}
?>
.
.
.
<?php if (isset($page_metadesc)) { ?>
<meta name="Description" content="<?php echo $page_metadesc;?>" />
<?php } ?>
This will only output the meta tag if the description is defined.