Index: t3lib/class.t3lib_page.php =================================================================== --- t3lib/class.t3lib_page.php (revision 6604) +++ t3lib/class.t3lib_page.php (working copy) @@ -143,7 +143,8 @@ if (!$show_hidden) { $this->where_hid_del.= 'AND pages.hidden=0 '; } - $this->where_hid_del.= 'AND (pages.starttime<='.$GLOBALS['SIM_ACCESS_TIME'].') AND (pages.endtime=0 OR pages.endtime>'.$GLOBALS['SIM_ACCESS_TIME'].') '; + $this->where_hid_del.= 'AND pages.starttime<=' . $GLOBALS['SIM_ACCESS_TIME'] . + ' AND (pages.endtime=0 OR pages.endtime>' . $GLOBALS['SIM_ACCESS_TIME'] . ' '; // Filter out new/deleted place-holder pages in case we are NOT in a versioning preview (that means we are online!) if (!$this->versioningPreview) { @@ -1090,7 +1091,7 @@ } if ($ctrl['enablecolumns']['starttime'] && !$ignore_array['starttime']) { $field = $table.'.'.$ctrl['enablecolumns']['starttime']; - $query.=' AND ('.$field.'<='.$GLOBALS['SIM_ACCESS_TIME'].')'; + $query.= ' AND (' . $field . '<=' . $GLOBALS['SIM_ACCESS_TIME'] . ')'; } if ($ctrl['enablecolumns']['endtime'] && !$ignore_array['endtime']) { $field = $table.'.'.$ctrl['enablecolumns']['endtime'];