Debugging

This commit is contained in:
r.didato
2019-06-06 20:33:32 +02:00
parent e3dfcbbe4d
commit 9470f3ea4d
+1 -4
View File
@@ -19,8 +19,6 @@ try{
// $optArr = "no chiave action in post";
$notizia = new NotiziaModel();
// $ansa = false;
// var_dump($notizia);
if(!is_null($notiziaId) && strcmp($notiziaId, "")!=0){
// $optArr = "è presente la chiave action in post";
$notizia = GlobalVariables::get("dao")->getFirst("NotiziaModel",array("id"=>$notiziaId));
@@ -33,8 +31,6 @@ try{
}
// echo "pene";
if(is_null($notizia)){
GUIHandler::redirect("admin/myNotizie.php");
}
@@ -49,6 +45,7 @@ try{
if(array_key_exists("action", $_POST)){
if(strcmp(PostHandler::get("action"),"save")==0){
$notizia->sondaggio = new stdClass();
$notizia->sondaggio->titolo = PostHandler::get("sondaggioTitolo");
$opzioni = PostHandler::get("opzioniSondaggio");
$optArr = explode("~",$opzioni);