From 3ad814fe9d3bc773369d2eba796c20d175732d9e Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@4221 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 d57d30a453..fb93b5a488 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();