Эх сурвалжийг харах

Hide the back button for Account -> Settings.

Mark Crane 10 жил өмнө
parent
commit
3d0d12529b

+ 3 - 1
core/user_settings/user_edit.php

@@ -287,7 +287,9 @@ else {
 	echo "<table $table_width cellpadding='0' cellspacing='0' border='0'>";
 	echo "<td align='left' width='100%' nowrap><b>".$text['title']."</b></td>\n";
 	echo "<td nowrap='nowrap'>\n";
-	echo "	<input type='button' class='btn' onclick=\"window.location='".$_SESSION['login']['destination']['url']."'\" value='".$text['button-back']."'>";
+	if (strlen($_SESSION['login']['destination']['url']) > 0) {
+		echo "	<input type='button' class='btn' onclick=\"window.location='".$_SESSION['login']['destination']['url']."'\" value='".$text['button-back']."'>";
+	}
 	echo "	<input type='submit' name='submit' class='btn' value='".$text['button-save']."'>";
 	echo "</td>\n";
 	echo "</tr>\n";