Преглед изворни кода

hotfix: erreur de logique dans comment update

bastien пре 13 година
родитељ
комит
4ddb1671b1
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/Muzich/CommentBundle/Controller/CommentController.php

+ 2 - 2
src/Muzich/CommentBundle/Controller/CommentController.php Прегледај датотеку

@@ -205,8 +205,8 @@ class CommentController extends Controller
205 205
 
206 206
     $this->getDoctrine()->getEntityManager()->persist($element);
207 207
     $this->getDoctrine()->getEntityManager()->flush();
208
-    
209
-    if (!($comment_index = $cm->getIndex($this->getUserId(), $date)))
208
+        
209
+    if (null === ($comment_index = $cm->getIndex($this->getUserId(), $date)))
210 210
     {
211 211
       return $this->jsonResponse(array(
212 212
         'status' => 'error',