File tests/user.php changed (mode: 100644) (index 483b905..d8f911c) |
... |
... |
rg_sql_free_result($res); |
39 |
39 |
|
|
40 |
40 |
// Test if empty uid/user/email returns error |
// Test if empty uid/user/email returns error |
41 |
41 |
$_ui = rg_user_info($db, 0, "", ""); |
$_ui = rg_user_info($db, 0, "", ""); |
42 |
|
if ($_ui['ok'] == 1) { |
|
|
42 |
|
if (($_ui['ok'] != 1) || ($_ui['exists'] !== 0)) { |
43 |
43 |
rg_log("Seems that invalid user does not return error!"); |
rg_log("Seems that invalid user does not return error!"); |
44 |
44 |
exit(1); |
exit(1); |
45 |
45 |
} |
} |