Changeset 70719 in spip-zone for _plugins_/compositions


Ignore:
Timestamp:
Mar 14, 2013, 10:12:58 AM (6 years ago)
Author:
kent1@…
Message:

éviter un warning

version 3.3.2

Location:
_plugins_/compositions/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/compositions/trunk/compositions_fonctions.php

    r66150 r70719  
    11<?php
    2 /*
     2/**
    33 * Plugin Compositions
    4  * (c) 2007-2009 Cedric Morin
     4 * (c) 2007-2013 Cedric Morin
    55 * Distribue sous licence GPL
    6  *
     6 *
     7 * @package SPIP\Compositions\Fonctions
    78 */
    89
     
    2021        if (is_null($config)){
    2122                // lister les objets dont on a active la composition dans la configuration
    22                 $config = unserialize($GLOBALS['meta']['compositions']);
     23                $config = isset($GLOBALS['meta']['compositions']) ? unserialize($GLOBALS['meta']['compositions']) : array();
    2324                $config = (isset($config['objets'])?$config['objets']:array('spip_articles','spip_rubriques'));
    2425                $config = array_map('objet_type',$config);
  • _plugins_/compositions/trunk/paquet.xml

    r67358 r70719  
    22        prefix="compositions"
    33        categorie="outil"
    4         version="3.3.1"
     4        version="3.3.2"
    55        etat="test"
    66        compatibilite="[3.0.0-dev;3.0.*]"
Note: See TracChangeset for help on using the changeset viewer.