diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PagewidgetController.php b/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PagewidgetController.php index ac6abe8f..916ff241 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PagewidgetController.php +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PagewidgetController.php @@ -59,7 +59,7 @@ class PagewidgetController extends Controller 'param' => $params, 'mode' => "update", 'access' => $access, - 'idicon' => $entity->getIcon()->getId(), + 'idicon' => ($entity->getIcon()?$entity->getIcon()->getId():$widgettype->getIcon()->getId()), 'method' => 'POST', ]); } else { diff --git a/src/ninegate-1.0/src/Cadoles/WebsocketBundle/Resources/views/Chat/client.html.twig b/src/ninegate-1.0/src/Cadoles/WebsocketBundle/Resources/views/Chat/client.html.twig index 79163199..c379fbca 100644 --- a/src/ninegate-1.0/src/Cadoles/WebsocketBundle/Resources/views/Chat/client.html.twig +++ b/src/ninegate-1.0/src/Cadoles/WebsocketBundle/Resources/views/Chat/client.html.twig @@ -94,11 +94,11 @@
{{ form_widget(form.message) }} - + Envoyer
- +
@@ -734,9 +734,9 @@ function addOnline(userid, useravatar, userlastname, userfirstname) { if(!$("#online"+userid).length) { - html = ""; + html = ""; html+= ""; - html+= userlastname+" "+userfirstname; + html+= ""+userlastname+" "+userfirstname+""; html+= ""; $("#useronline").append(html); }