forked from science-ation/science-ation
- $config needs to be global, or the year doesn't work :)
This commit is contained in:
parent
d5676576a7
commit
b102731ac2
@ -460,6 +460,7 @@ function user_purge($u, $type=false)
|
||||
/* Duplicate a row in the users table, or any one of the users_* tables. */
|
||||
function user_dupe_row($db, $key, $val, $newval)
|
||||
{
|
||||
global $config;
|
||||
$nullfields = array('deleteddatetime'); /* Fields that can be null */
|
||||
$q = mysql_query("SELECT * FROM $db WHERE $key='$val'");
|
||||
if(mysql_num_rows($q) != 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user