Changeset 294


Ignore:
Timestamp:
Jan 18, 2004, 10:57:12 PM (20 years ago)
Author:
z0rglub
Message:

Prevent Php warnings if some config variables are NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_3/include/config.inc.php

    r238 r294  
    8080// array $conf.
    8181foreach ( $infos as $info ) {
    82   $conf[$info] = $row[$info];
     82  if ( isset( $row[$info] ) ) $conf[$info] = $row[$info];
     83  else                        $conf[$info] = '';
    8384  // If the field is true or false, the variable is transformed into a boolean
    8485  // value.
    85   if ( $row[$info] == 'true' or $row[$info] == 'false' )
     86  if ( $conf[$info] == 'true' or $conf[$info] == 'false' )
    8687  {
    87     $conf[$info] = get_boolean( $row[$info] );
     88    $conf[$info] = get_boolean( $conf[$info] );
    8889  }
    8990}
Note: See TracChangeset for help on using the changeset viewer.