~ubuntu-branches/ubuntu/jaunty/drupal5/jaunty-security

« back to all changes in this revision

Viewing changes to modules/system/system.module

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-01-09 21:55:33 UTC
  • mfrom: (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090109215533-jiz659l0jmilexoo
Tags: 5.14-1ubuntu1
* Merge from debian unstable, remaining changes: LP: #315544
  + debian/patches/02_htaccess:
    - Add RewriteBase /drupal5
  + debian/control:
    - Replace exim4 with postfix in Depends.
    - Add Homepage field.
  + Fix for debian/watch.
    - Bump version from 2 to 3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
// $Id: system.module,v 1.440.2.39 2008/10/22 19:25:28 drumm Exp $
 
2
// $Id: system.module,v 1.440.2.44 2008/12/11 17:37:27 drumm Exp $
3
3
 
4
4
/**
5
5
 * @file
6
6
 * Configuration system that lets administrators modify the workings of the site.
7
7
 */
8
8
 
9
 
define('VERSION', '5.12');
 
9
define('VERSION', '5.14');
10
10
 
11
11
/**
12
12
 * Implementation of hook_help().
1432
1432
function system_module_build_dependencies($modules, $form_values) {
1433
1433
  static $dependencies;
1434
1434
 
1435
 
  if (!isset($dependencies) && isset($form_values)) {
 
1435
  if (!isset($dependencies) && isset($form_values) && is_array($form_values)) {
1436
1436
    $dependencies = array();
1437
1437
    foreach ($modules as $name => $module) {
1438
1438
      // If the module is disabled, will be switched on and it has dependencies.
1439
 
      if (!$module->status && $form_values['status'][$name] && isset($module->info['dependencies'])) {
 
1439
      if (!$module->status && isset($form_values['status'][$name]) && $form_values['status'][$name] && isset($module->info['dependencies'])) {
1440
1440
        foreach ($module->info['dependencies'] as $dependency) {
1441
1441
          if (!$form_values['status'][$dependency] && isset($modules[$dependency])) {
1442
1442
            if (!isset($dependencies[$name])) {