Index: class.t3lib_befunc.php =================================================================== --- class.t3lib_befunc.php (revision 2285) +++ class.t3lib_befunc.php (working copy) @@ -434,6 +434,11 @@ $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));