Browse Source

Fix issue return value in write context with php 5.4 - refs BT#9893 #tmi

Yannick Warnier 9 years ago
parent
commit
ee1fe88b4c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/Chamilo/CoreBundle/Entity/SequenceResource.php

+ 2 - 1
src/Chamilo/CoreBundle/Entity/SequenceResource.php

@@ -90,7 +90,8 @@ class SequenceResource
      */
     public function hasGraph()
     {
-        return !empty($this->getSequence()->getGraph()) ? true : false;
+        $graph = $this->getSequence()->getGraph();
+        return !empty($graph) ? true : false;
     }
 
     /**