Changeset 62090 in spip-zone


Ignore:
Timestamp:
Jun 4, 2012, 10:45:24 AM (7 years ago)
Author:
marcimat@…
Message:

Corrections de notices PHP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/textwheel/inc/textwheel.php

    r59769 r62090  
    1818// Definition des principales wheels de SPIP
    1919//
     20if (!isset($GLOBALS['spip_wheels'])) {
     21        $GLOBALS['spip_wheels'] = array();
     22}
    2023
    2124// Si le tableau des raccourcis existe déjà
    22 if (!is_array($GLOBALS['spip_wheels']['raccourcis']))
     25if (!isset($GLOBALS['spip_wheels']['raccourcis']) OR !is_array($GLOBALS['spip_wheels']['raccourcis']))
    2326        $GLOBALS['spip_wheels']['raccourcis'] = array(
    2427                'spip/spip.yaml',
     
    8285                include_spip('inc/memoization');
    8386                if (!function_exists('cache_get')) include_spip('inc/memoization-mini');
    84                 if (_VAR_MODE!='recalcul'
     87                if ((!defined('_VAR_MODE') OR _VAR_MODE!='recalcul')
    8588                  AND $cacheruleset = cache_get($key))
    8689                        return $cacheruleset;
Note: See TracChangeset for help on using the changeset viewer.