Debugging
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user