X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Freq%2Fpg.php;h=66bd90f18e8def555c408dbd846d7afcc4a3504d;hp=e4cad0edd219294a32720498247f225c0d9b30d3;hb=5be150361b3c836d9206941ba43f862df11466db;hpb=bca3db9e1ab94e469b01f7e994a5e095de5f88c4 diff --git a/www/ecrire/req/pg.php b/www/ecrire/req/pg.php index e4cad0e..66bd90f 100644 --- a/www/ecrire/req/pg.php +++ b/www/ecrire/req/pg.php @@ -3,7 +3,7 @@ /* *************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2012 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -1035,7 +1035,7 @@ function spip_pg_cite($v, $t){ if(is_null($v)) return 'NULL'; // null php se traduit en NULL SQL if (sql_test_date($t)) { - if (strpos("0123456789", $v[0]) === false) + if ($v AND (strpos("0123456789", $v[0]) === false)) return spip_pg_frommysql($v); else { if (strncmp($v,'0000',4)==0)