|
@@ 148-152 (lines=5) @@
|
| 145 |
|
if ($niveau > 0) { |
| 146 |
|
$query = $dbc1->select("stockage")->from("entrepot")->where("ID_entrepot", "=", $niveau)->get(); |
| 147 |
|
|
| 148 |
|
if ((is_array($query)) && (count($query) > 0)){ |
| 149 |
|
foreach ($query as $obj) { |
| 150 |
|
return $obj->stockage; |
| 151 |
|
} |
| 152 |
|
} |
| 153 |
|
} |
| 154 |
|
else { |
| 155 |
|
return 1000; |
|
@@ 489-493 (lines=5) @@
|
| 486 |
|
if ($this->nom_batiment_sql == "entrepot") { |
| 487 |
|
$query = $dbc1->select("stockage")->from("entrepot")->where("ID_entrepot", "=", $this->niveau_batiment+1)->get(); |
| 488 |
|
|
| 489 |
|
if ((is_array($query)) && (count($query) > 0)){ |
| 490 |
|
foreach ($query as $obj) { |
| 491 |
|
$this->info_batiment = "Capacité de l'entrepôt au prochain niveau : ". $obj->stockage; |
| 492 |
|
} |
| 493 |
|
} |
| 494 |
|
} |
| 495 |
|
|
| 496 |
|
Bataille::setValues([ |