- $config needs to be global, or the year doesn't work :)

This commit is contained in:
dave 2009-01-21 09:04:36 +00:00
parent d5676576a7
commit b102731ac2

View File

@ -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) {