Changeset 3929

Show
Ignore:
Timestamp:
06/27/06 06:04:27 (2 years ago)
Author:
ryan
Message:

Fix array_keys error when cron option is not an array. Props robmiller. fixes #2814

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/cron.php

    r3860 r3929  
    6666 
    6767function spawn_cron() { 
    68     $keys = array_keys( get_option( 'cron' ) ); 
     68    $crons = get_option( 'cron' ) 
     69     
     70    if( !is_array($crons) ) 
     71        return; 
     72     
     73    $keys = array_keys( $crons ); 
    6974    if ( array_shift( $keys ) > time() ) 
    7075        return;