Bug #17326 ยป befunc_enablefields.diff
class.t3lib_befunc.php (working copy) | ||
---|---|---|
$query[]='('.$field.'=0 OR '.$field.'>'.$GLOBALS['SIM_EXEC_TIME'].')';
|
||
$invQuery[]='('.$field.'!=0 AND '.$field.'<='.$GLOBALS['SIM_EXEC_TIME'].')';
|
||
}
|
||
if ($ctrl['delete']) {
|
||
$field = $table.'.'.$ctrl['delete'];
|
||
$query[]=$field.'=0';
|
||
$invQuery[]=$field.'!=0';
|
||
}
|
||
}
|
||
}
|
||
$outQ = ' AND '.($inv ? '('.implode(' OR ',$invQuery).')' : implode(' AND ',$query));
|