Changeset 99190 in spip-zone


Ignore:
Timestamp:
Aug 17, 2016, 3:39:08 PM (4 years ago)
Author:
marcimat@…
Message:

Notice PHP en moins.

Location:
_plugins_/selections_editoriales/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/selections_editoriales/trunk/paquet.xml

    r98388 r99190  
    22        prefix="selections_editoriales"
    33        categorie="navigation"
    4         version="1.6.4"
     4        version="1.6.5"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.1.*]"
  • _plugins_/selections_editoriales/trunk/selections_editoriales_autorisations.php

    r88212 r99190  
    226226        $ok = (
    227227                (
    228                         $id_selection = intval($opt['id_selection'])
    229                         or $id_selection = sql_getfetsel('id_selection', 'spip_selections_contenus', 'id_selections_contenu = '.intval($id))
     228                        (isset($opt['id_selection']) and $id_selection = intval($opt['id_selection']))
     229                        or $id_selection = sql_getfetsel('id_selection', 'spip_selections_contenus', 'id_selections_contenu = ' . intval($id))
    230230                )
    231231                and autoriser('modifier', 'selection', $id_selection, $qui, $opt)
Note: See TracChangeset for help on using the changeset viewer.