소스 검색

hotfix: erreur de logique dans comment update

bastien 14 년 전
부모
커밋
4ddb1671b1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Muzich/CommentBundle/Controller/CommentController.php

+ 2 - 2
src/Muzich/CommentBundle/Controller/CommentController.php 파일 보기

205
 
205
 
206
     $this->getDoctrine()->getEntityManager()->persist($element);
206
     $this->getDoctrine()->getEntityManager()->persist($element);
207
     $this->getDoctrine()->getEntityManager()->flush();
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
       return $this->jsonResponse(array(
211
       return $this->jsonResponse(array(
212
         'status' => 'error',
212
         'status' => 'error',