- XHTML errors/warnings fixed in some pages
[shipsimu.git] / application / ship-simu / main / class_WorksContract.php
index 7f61096fc5a532879b97652195be0a38d939b722..f56c2fae74ca79eefb906d9756af3569c076e07e 100644 (file)
@@ -138,7 +138,7 @@ class WorksContract extends BaseFrameworkSystem implements SignableContract {
                        if (!$partInstance instanceof ConstructableShipPart) {
                                // Ship part not constructable!
                                throw new ShipPartNotConstructableException(array($shipPart), self::EXCEPTION_NOT_CONSTRUCTABLE);
-                       } elseif (!$this->getShipInstance()->createShipPart($partInstance, $parentPart)) {
+                       } elseif ($this->getShipInstance()->createShipPart($partInstance, $parentPart) === false) {
                                // Schiff konnte nicht gebaut werden!
                                throw new ShipNotConstructedException(sprintf("Das Schiff <strong>%s</strong> konnte wegen eines Fehlers nicht gebaut werden. Siehe obere Meldungen.",
                                        $this->getShipInstance()->getShipName()