forked from science-ation/science-ation
delete debugging print statements
This commit is contained in:
parent
ebd4666f51
commit
a430aadab3
@ -61,14 +61,12 @@ function config_editor_require_vars($category, $year, $varlist)
|
|||||||
$q = mysql_query("SELECT * FROM config WHERE ".
|
$q = mysql_query("SELECT * FROM config WHERE ".
|
||||||
"var='$v' AND year='-1'");
|
"var='$v' AND year='-1'");
|
||||||
if(mysql_num_rows($q) != 1) {
|
if(mysql_num_rows($q) != 1) {
|
||||||
print("Not found in year -1");
|
|
||||||
/* Insert a dummy */
|
/* Insert a dummy */
|
||||||
mysql_query("INSERT INTO `config` (`var`, `val`,
|
mysql_query("INSERT INTO `config` (`var`, `val`,
|
||||||
`description`, `category`, `year`, `ord`)
|
`description`, `category`, `year`, `ord`)
|
||||||
VALUES ('$v', '', '',
|
VALUES ('$v', '', '',
|
||||||
'$category', $year, 99999)");
|
'$category', $year, 99999)");
|
||||||
} else {
|
} else {
|
||||||
print("Found in year -1");
|
|
||||||
$r = mysql_fetch_object($q);
|
$r = mysql_fetch_object($q);
|
||||||
mysql_query("INSERT INTO `config` (`var`, `val`,
|
mysql_query("INSERT INTO `config` (`var`, `val`,
|
||||||
`description`, `category`, `year`, `ord`)
|
`description`, `category`, `year`, `ord`)
|
||||||
|
Loading…
Reference in New Issue
Block a user