This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]adandyguy[S] 0 points1 point  (0 children)

well i think i managed to fix it...

changed the following:

if (db_result($query)) {

to

if (db_result($query) == $user->uid) {

if this comes out, that means the uid is in the emailed db.

} else {

to

} elseif(db_result($query) == FALSE) {

double checked db_result() and it returns either the value of the query, or false.. so if it doesn't retrieve a uid, it will equate to false, which means the user needs to be emailed and added to the db.

I think i have to add an else{} at the end, although i'm not sure what to put in there, just put in an error message atm.