Commit 696e243b authored by Leigh Stoller's avatar Leigh Stoller

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,
TBDB_CHECKDBSLOT_WARN|TBDB_CHECKDBSLOT_ERROR);
}
# Handy wrappers for checking various fields.
function TBvalid_uid($token) {
return TBcheck_dbslot($token, "users", "uid",
......
Markdown is supported
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