--- loncom/homework/bridgetask.pm	2006/06/23 17:40:00	1.177
+++ loncom/homework/bridgetask.pm	2006/06/23 22:32:39	1.178
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: bridgetask.pm,v 1.177 2006/06/23 17:40:00 albertel Exp $
+# $Id: bridgetask.pm,v 1.178 2006/06/23 22:32:39 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -50,7 +50,7 @@ my %dimension;
 sub initialize_bridgetask {
     # id of current Dimension, 0 means that no dimension is current 
     # (inside <Task> only)
-    %Apache::bridgetask::dimension=();
+    @Apache::bridgetask::dimension=();
     # list of all Dimension ids seen
     %Apache::bridgetask::top_dimensionlist=();
     # list of all current Instance ids
@@ -144,7 +144,7 @@ sub create_new_version {
 	#setup new version and who did it
        	$Apache::lonhomework::results{'resource.0.version'}=$version;
 	$id = "$version.0";
-	if (!defined($user) || defined($domain)) {
+	if (!defined($user) || !defined($domain)) {
 	    $user = $env{'user.name'};
 	    $domain = $env{'user.domain'};
 	}