Browse Source

Minor change to contact edit.

markjcrane 9 years ago
parent
commit
db34471daa
1 changed files with 6 additions and 1 deletions
  1. 6 1
      contact_edit.php

+ 6 - 1
contact_edit.php

@@ -350,7 +350,12 @@ else {
 	echo "		});";
 	echo "		});";
 	echo "	});";
 	echo "	});";
 	echo "</script>";
 	echo "</script>";
-	echo "<img id='img-buffer' src='".PROJECT_PATH."/themes/".$_SESSION["domain"]["template"]["name"]."/images/qr_code.png' style='display: none;'>";
+	if (isset($_SESSION['theme']['qr_image'])) {
+		echo "<img id='img-buffer' src='".$_SESSION["theme"]["qr_image"]["text"]."' style='display: none;'>";
+	}
+	else {
+		echo "<img id='img-buffer' src='".PROJECT_PATH."/themes/".$_SESSION["domain"]["template"]["name"]."/images/qr_code.png' style='display: none;'>";
+	}
 
 
 //show the content
 //show the content
 	echo "<form method='post' name='frm' action=''>\n";
 	echo "<form method='post' name='frm' action=''>\n";