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

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

Yannick Warnier пре 9 година
родитељ
комит
ee1fe88b4c
1 измењених фајлова са 2 додато и 1 уклоњено
  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;
     }
 
     /**