Objet : devel-adl
Archives de la liste
- From: svn AT agendadulibre.org
- To: devel AT agendadulibre.org
- Subject: [Devel] r297 - branches/dui
- Date: Tue, 2 Oct 2007 23:17:39 +0200 (CEST)
- List-archive: <http://agendadulibre.org/pipermail/devel>
- List-id: Developpement de l'Agenda du Libre <devel.agendadulibre.org>
Author: ldayot
Date: Tue Oct 2 23:16:43 2007
New Revision: 297
Log:
Correction d'une punaise lorsqu'aucun tag n'est choisi.
Modified:
branches/dui/submit.php
Modified: branches/dui/submit.php
==============================================================================
--- branches/dui/submit.php (original)
+++ branches/dui/submit.php Tue Oct 2 23:16:43 2007
@@ -237,13 +237,16 @@
{
// format tags
$event_tags = $_POST['__event_tags'];
- foreach($_POST['tags'] as $aTags)
- if (is_array($aTags))
- $event_tags .= " ". implode(' ', $aTags);
- else
- $event_tags .= " ". $aTags;
+ if (is_array($event_tags))
+ foreach($_POST['tags'] as $aTags)
+ if (is_array($aTags))
+ $event_tags .= " ". implode(' ', $aTags);
+ else
+ $event_tags .= " ". $aTags;
$event_tags = trim(str_replace(" ", " ", $event_tags));
}
+else
+ $event_tags = "";
/* If user submitted event */
if (isset($_POST['__event_save']))
- [Devel] r297 - branches/dui, svn, 02/10/2007
Archives gérées par MHonArc 2.6.16.