Projet

Général

Profil

Révision cd5c298a

Ajouté par Geoffroy Desvernay il y a plus de 5 ans

MAJ 7.60 -> 7.62

Voir les différences:

drupal7/modules/book/book.module
768 768
    return NULL;
769 769
  }
770 770
  $flat = book_get_flat_menu($book_link);
771
  // Assigning the array to $flat resets the array pointer for use with each().
771
  reset($flat);
772 772
  $curr = NULL;
773 773
  do {
774 774
    $prev = $curr;
775
    list($key, $curr) = each($flat);
775
    $curr = current($flat);
776
    $key = key($flat);
777
    next($flat);
776 778
  } while ($key && $key != $book_link['mlid']);
777 779

  
778 780
  if ($key == $book_link['mlid']) {
......
806 808
 */
807 809
function book_next($book_link) {
808 810
  $flat = book_get_flat_menu($book_link);
809
  // Assigning the array to $flat resets the array pointer for use with each().
811
  reset($flat);
810 812
  do {
811
    list($key, $curr) = each($flat);
813
    $key = key($flat);
814
    next($flat);
812 815
  }
813 816
  while ($key && $key != $book_link['mlid']);
814 817

  

Formats disponibles : Unified diff