Commit 696e243b authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add minor utility function.

parent 98430857
......@@ -162,6 +162,12 @@ function TBcheck_dbslot($token, $table, $column, $flag = 0)
return 0;
# Handy default wrapper.
function TBvalid_slot($token, $table, $slot) {
return TBcheck_dbslot($token, $table, $slot,
# Handy wrappers for checking various fields.
function TBvalid_uid($token) {
return TBcheck_dbslot($token, "users", "uid",
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment