Cleanup
This commit is contained in:
10
tbl_qbe.php3
10
tbl_qbe.php3
@@ -708,8 +708,6 @@ if (isset($Field) && count($Field) > 0) {
|
||||
$rest = array();
|
||||
$found = array();
|
||||
$rel_work = FALSE;
|
||||
//$ex = 0;
|
||||
// $hit = 0;
|
||||
|
||||
// we only start this if we have fields, otherwise it would be dumb
|
||||
while (list(, $value) = each($Field)) {
|
||||
@@ -729,7 +727,6 @@ if (isset($Field) && count($Field) > 0) {
|
||||
$wtable = explode('.', urldecode($Field[$x]));
|
||||
$ctable = str_replace('`', '', $wtable[0]);
|
||||
if (!empty($Field[$x]) && !empty($Criteria[$x])) {
|
||||
// if (isset($where[$ctable]) && $where[$ctable] != '=') {
|
||||
if (empty($where[$ctable]) || $where[$ctable] != '=') {
|
||||
$where[$ctable] = substr($Criteria[$x], 0, 1);
|
||||
}
|
||||
@@ -784,15 +781,10 @@ if (isset($Field) && count($Field) > 0) {
|
||||
// that is in the WHERE clause
|
||||
if (!isset($master)) {
|
||||
$master = $row['wer'];
|
||||
} else {
|
||||
// remember that we found more than one because this means we
|
||||
// need to refine more
|
||||
//$hit = 2;
|
||||
} // end if.. else...
|
||||
}
|
||||
while (list($key, $value) = each($wheretabs)) {
|
||||
if ($row['wer'] == $key) {
|
||||
$master = $row['wer'];
|
||||
//$ex = 1;
|
||||
break;
|
||||
}
|
||||
} // end while
|
||||
|
Reference in New Issue
Block a user