blob: 934ef50321934f5b12fdfee2c150bacc40cc8648 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- lotgd-1.0.2.orig/configuration.php 2005-04-13 02:11:43.000000000 -0400
+++ lotgd-1.0.2/configuration.php 2005-06-06 23:06:13.000000000 -0400
@@ -58,8 +58,8 @@
$post = httpallpost();
reset($post);
$old=$settings;
while (list($key,$val)=each($post)){
- if (isset($settings[$key]) && stripslashes($val) != $settings[$key]) {
+ if ((!isset($settings[$key]) && stripslashes($val)) || (isset($settings[$key]) && (stripslashes($val) != $settings[$key]))) {
savesetting($key,stripslashes($val));
output("Setting %s to %s`n", $key, stripslashes($val));
gamelog("`@Changed core setting `^$key`@ from `#{$old[$key]}`@ to `&$val`0","settings");
|