mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-27 14:53:08 +02:00
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
This commit is contained in:
parent
f3de5a0f0e
commit
4e2f949d74
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user