Index: link-template.php
===================================================================
--- link-template.php	(revision 5072)
+++ link-template.php	(working copy)
@@ -117,6 +117,7 @@
 function get_page_link($id = false) {
 	global $post;
 
+	$id = (int) $id;
 	if ( !$id )
 		$id = $post->ID;
 

