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
This commit is contained in:
Ryan Boren 2006-09-25 01:21:13 +00:00
parent d8250fa8ce
commit 3ad814fe9d
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ function wp_cron() {
return; return;
$keys = array_keys( $crons ); $keys = array_keys( $crons );
if ( $keys[0] > time() ) if ( isset($keys[0]) && $keys[0] > time() )
return; return;
$schedules = wp_get_schedules(); $schedules = wp_get_schedules();