Changeset 65425 in spip-zone
- Timestamp:
- Aug 31, 2012, 1:39:55 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/a2a/branches/type/formulaires/ajoute_a2a.php
r65420 r65425 39 39 function a2a_lier_article($id_article_cible, $id_article_source, $type=null, $type_liaison=''){ 40 40 include_spip('inc/config'); 41 if (!$type_liaison){42 $wheretype='type_liaison IS NULL';43 }44 else {45 'type_liaison='.$type_liaison;46 }47 41 //on verifie que cet article n'est pas deja lie 48 42 if ( … … 61 55 sql_countsel('spip_articles_lies', array( 62 56 'id_article=' . sql_quote($id_article_source), 63 'id_article_lie=' . sql_quote($id_article_cible), $wheretype))57 'id_article_lie=' . sql_quote($id_article_cible),'type_Liaison='.sql_quote($type_liaison))) 64 58 )) 65 59 ){
Note: See TracChangeset
for help on using the changeset viewer.