51,12 → 51,11 |
if (is_null($retour)) { |
$info = 'Un problème est survenu : '.print_r($this->messages, true); |
$this->envoyer($info); |
} else if ($retour['type'] == 'jsonVar') { |
|
} else if (isset($retour['type']) && $retour['type'] == 'jsonVar') { |
$this->envoyerJsonVar($retour['variable_js'], $retour['donnees']); |
} else if ($retour['type'] == 'jsonP') { |
} else if (isset($retour['type']) && $retour['type'] == 'jsonP') { |
$this->envoyerJsonp($retour['donnees']); |
} else if ($retour['type'] == 'png') { |
} else if (isset($retour['type']) && $retour['type'] == 'png') { |
header("Content-type: image/png"); |
imagepng($retour['img']); |
imagedestroy($retour['img']); |