diff --git a/panel_admin/includes/formEditPromotion.php b/panel_admin/includes/formEditPromotion.php
index a364c91..c656e4f 100644
--- a/panel_admin/includes/formEditPromotion.php
+++ b/panel_admin/includes/formEditPromotion.php
@@ -84,7 +84,6 @@ class formEditPromotion extends Form{
if (count($result) === 0) {
$bd = new Promotion_DAO("complucine");
- //FALTARIA SUBIR LA IMAGEN
$exist = $bd-> promotionData($id);
if(mysqli_num_rows($exist) == 1){
$ok = count($_FILES) == 1 && $_FILES['archivo']['error'] == UPLOAD_ERR_OK;
@@ -119,7 +118,8 @@ class formEditPromotion extends Form{
//if ( !copy("../img/tmp/{$nombre}", "/{$nombre}") ) {
// $result['img'] = 'Error al mover el archivo';
//}
- $bd->editPromotion($id, $tittle,$description,$code,$active, $nombre);
+ $nombreBd = str_replace("_", " ", $nombre);
+ $bd->editPromotion($id, $tittle,$description,$code,$active, $nombreBd);
$_SESSION['message'] = "
diff --git a/panel_admin/index.php b/panel_admin/index.php
index bdba00d..dcb15dc 100644
--- a/panel_admin/index.php
+++ b/panel_admin/index.php
@@ -63,7 +63,7 @@
$_SESSION["lastRol"] = $_SESSION["rol"];
//unset($_SESSION["rol"]);
$_SESSION["rol"] = null;
- header("Location: {$_SERVER['PHP_SELF']}");
+ //header("Location: {$_SERVER['PHP_SELF']}");
$_SESSION['message'] = "
@@ -80,7 +80,7 @@
case 'ur':
$_SESSION["lastRol"] = $_SESSION["rol"];
$_SESSION["rol"] = "user";
- header("Location: {$_SERVER['PHP_SELF']}");
+ //header("Location: {$_SERVER['PHP_SELF']}");
$_SESSION['message'] = "
@@ -97,7 +97,7 @@
case 'ag':
$_SESSION["lastRol"] = $_SESSION["rol"];
$_SESSION["rol"] = "manager";
- header("Location: {$_SERVER['PHP_SELF']}");
+ //header("Location: {$_SERVER['PHP_SELF']}");
$_SESSION['message'] = "