Commit 75705f75 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Set the error string when the DB entry is missing and return null to

tell caller about it.
parent 19582197
......@@ -46,6 +46,7 @@ function TBGrabFieldData()
function TBFieldData($table, $column, $flag = 0)
{
global $DBFieldData;
global $DBFieldErrstr;
if (! $DBFieldData) {
TBGrabFieldData();
......@@ -75,8 +76,10 @@ function TBFieldData($table, $column, $flag = 0)
# Warn TBOPS
TBERROR("TBFieldData: No slot data for $table/$column!", 0);
}
if ($flag & TBDB_CHECKDBSLOT_ERROR)
return 0;
if ($flag & TBDB_CHECKDBSLOT_ERROR) {
$DBFieldErrstr = "Internal Error";
return array(null, null);
}
}
$fielddata = $DBFieldData["default:default"];
}
......
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