dever 7 år sedan
förälder
incheckning
af6b379a7d
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/Api.php

+ 1 - 1
src/Api.php

@@ -21,11 +21,11 @@ class Api
 		if (!$user) {
 		if (!$user) {
 			$user['uid'] = $uid;
 			$user['uid'] = $uid;
 			$user['index'] = 1;
 			$user['index'] = 1;
-			$user['question_total'] = Dever::db('survey/info')->total(array('product_id' => $product_id));
 			$user['product_id'] = $product_id;
 			$user['product_id'] = $product_id;
 			$user['status'] = 2;
 			$user['status'] = 2;
 			$user['id'] = Dever::db('survey/user')->insert($user);
 			$user['id'] = Dever::db('survey/user')->insert($user);
 		}
 		}
+		$user['question_total'] = Dever::db('survey/info')->total(array('product_id' => $product_id));
 
 
 		$result['user'] = $user;
 		$result['user'] = $user;
 		if ($page_number > 0) {
 		if ($page_number > 0) {