Forum Moderators: coopster
(You could also only check the date once... It might not be a 'gain' unless you use the hour again, but a thought you might use later, say with a 'for' or something...)
$hour=date("H");
if ($hour > '11' && $hour < '19') {
include_once 'file_with_else.php';
}
Then to put them together you could:
(It looks like anyway.)
$hour=date("H");
if ($hour > '11' && $hour < '19' && tep_not_null(GLOBAL_ADMIN_NOTE)) {
include_once 'file_with_else.php';
}