Prechádzať zdrojové kódy

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

Yannick Warnier 9 rokov pred
rodič
commit
ee1fe88b4c

+ 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;
     }
 
     /**