Index: capabilities.php
===================================================================
--- capabilities.php	(revision 3502)
+++ capabilities.php	(working copy)
@@ -146,8 +146,11 @@
 		$this->id = $this->ID;
 		$this->cap_key = $table_prefix . 'capabilities';
 		$this->caps = &$this->{$this->cap_key};
-		if ( ! is_array($this->caps) )
+		if ( ! is_array($this->caps) ) {
 			$this->caps = array();
+			$this->roles = array();
+			$this->set_role(get_settings('default_role'));
+		}
 		$this->get_role_caps();
 	}
 	

