[Devel] r297 - branches/dui
svn at agendadulibre.org
svn at agendadulibre.org
Mar 2 Oct 23:17:39 CEST 2007
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']))
Plus d'informations sur la liste de diffusion Devel