diff --git a/trunk/web/concrete/models/attribute/key.php b/trunk/web/concrete/models/attribute/key.php
index <HASH>..<HASH> 100644
--- a/trunk/web/concrete/models/attribute/key.php
+++ b/trunk/web/concrete/models/attribute/key.php
@@ -209,7 +209,7 @@ class AttributeKey extends Object {
 			}
 		}
 		
-		$q = $db->GetInsertSQL($rs, $columnHeaders);
+		$q = $db->GetInsertSQL(&$rs, $columnHeaders);
 		$r = $db->Execute($q);
 		$r->Close();
 		$rs->Close();
fixed passing object when it should be passed by reference in attribute key, enforced in php <I>

git-svn-id: <URL>