# This patch file uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
# General security cleanup, prevents divide by zero possibility which can occur.
# Jason.Giedymin@AcronymLabs.com
--- /buddypress/bp-core/bp-core-templatetags.php
+++ /buddypress/bp-core/bp-core-templatetags.php
@@ -813,6 +813,7 @@
 			$this->member_count = count($this->members);
 		}
 		
+                if ( ((int) $this->total_member_count > 0) && ((int) $this->pag_num > 0) ) {
 		$this->pag_links = paginate_links( array(
 			'base' => add_query_arg( 'upage', '%#%' ),
 			'format' => '',
@@ -823,6 +824,7 @@
 			'mid_size' => 1
 		));		
 	}
+	}
\ No newline at end of file
 	
 	function has_members() {
 		if ( $this->member_count )
