Explorar el Código

bug fix: getTagsArray (controller) ne renseigné pas la variable statique.

bastien hace 13 años
padre
commit
48ff1f4616
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Muzich/CoreBundle/lib/Controller.php

+ 1 - 1
src/Muzich/CoreBundle/lib/Controller.php Ver fichero

@@ -142,7 +142,7 @@ class Controller extends BaseController
142 142
   {
143 143
     if (!count(self::$tags) || $force_refresh)
144 144
     {
145
-      return $this->getDoctrine()->getRepository('MuzichCoreBundle:Tag')->getTagsArray();
145
+      return self::$tags = $this->getDoctrine()->getRepository('MuzichCoreBundle:Tag')->getTagsArray();
146 146
     }
147 147
     
148 148
     return self::$tags;