Commit 540dfdd6 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Use correct checkslot entry for rspec.

parent 27cc006a
......@@ -343,7 +343,7 @@ foreach ($required as $key) {
if (isset($formfields["profile_rspec"]) &&
$formfields["profile_rspec"] != "") {
if (! TBvalid_html_fulltext($formfields["profile_rspec"])) {
if (! TBvalid_rspec($formfields["profile_rspec"])) {
$errors["profile_rspec"] = TBFieldErrorString();
}
else {
......
......@@ -22,6 +22,12 @@
# }}}
#
#
function TBvalid_rspec($token) {
return TBcheck_dbslot($token, "apt_profiles", "rspec",
TBDB_CHECKDBSLOT_WARN|TBDB_CHECKDBSLOT_ERROR);
}
class Profile
{
var $profile;
......
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