bug 893: Fixed typo in includes/temp_functions.php dres ->$res