From 4e2f949d74b8cc160ad1ea81ee996ca7c5bd9b90 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 25 Sep 2006 01:21:13 +0000 Subject: [PATCH] Check if isset to avoid warning. Props Alex King. fixes #3160 git-svn-id: http://svn.automattic.com/wordpress/trunk@4221 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/cron.php b/wp-includes/cron.php index d57d30a45..fb93b5a48 100644 --- a/wp-includes/cron.php +++ b/wp-includes/cron.php @@ -102,7 +102,7 @@ function wp_cron() { return; $keys = array_keys( $crons ); - if ( $keys[0] > time() ) + if ( isset($keys[0]) && $keys[0] > time() ) return; $schedules = wp_get_schedules();