Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/06/2015, 14:34
xoceunder
 
Fecha de Ingreso: junio-2012
Ubicación: En el Mundo
Mensajes: 759
Antigüedad: 11 años, 11 meses
Puntos: 10
duda con error de codigo

hola a todos es que tengo este pequeno error

Notice: Undefined index: operation in C:\xampp\htdocs\sistema\server.php on line 17

y este es el archivo server.php

Código PHP:
Ver original
  1. <?php
  2. require_once("configTree.php");
  3. $jstree = new json_tree();
  4.  
  5. //$jstree->_create_default();
  6. //die();
  7.  
  8. if(isset($_GET["reconstruct"])) {
  9.     $jstree->_reconstruct();
  10.     die();
  11. }
  12. if(isset($_GET["analyze"])) {
  13.     echo $jstree->_analyze();
  14.     die();
  15. }
  16.  
  17. if($_REQUEST["operation"] && strpos($_REQUEST["operation"], "_") !== 0 && method_exists($jstree, $_REQUEST["operation"])) {
  18.     header("HTTP/1.0 200 OK");
  19.     header('Content-type: application/json; charset=utf-8');
  20.     header("Cache-Control: no-cache, must-revalidate");
  21.     header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
  22.     header("Pragma: no-cache");
  23.     echo $jstree->{$_REQUEST["operation"]}($_REQUEST);
  24.     die();
  25. }
  26. header("HTTP/1.0 404 Not Found");
  27. ?>

que puede ser el problema y como solucionarlo